3
在我的谷歌应用程序引擎应用程序中,我试图从使用jquery.Ajax的XML文件获取数据,但是当我运行该页面时,它会返回404错误XML文件。 XML文件位于应用程序的根文件夹中,即与索引页位于同一级别。在Google App Engine中使用jQuery.Ajax获取404错误
我有一个索引页和索引页,我有下面的代码(script标签内)
$(document).ready(function(){
$.ajax({
type: "GET",
url: "states.xml",
dataType: "xml",
error:function(xhr,err){
alert("readyState: "+xhr.readyState+"\nstatus: "+xhr.status);
alert("responseText: "+xhr.responseText);
},
success: function(xml) {
alert("success");
}
});
});
现在工作。谢谢 – Dele 2011-04-30 18:48:02