87,910
社区成员
发帖
与我相关
我的任务
分享
$.ajax({
type: "GET",
async:false,
url: g.ConfigError, //Requesting simple.xml
dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
complete: this.setErrorList
});
setErrorList:function(data){
var errorList = null;
var objJson = $.xmlToJSON(data.responseXML);
if(objJson){
errorList = objJson.Err;
//alert(this.FileName)
if(_g.PermitOffline){
g_ErrorList = errorList;
}
this.ErrorList = errorList;
}
},
getdata:function(){
this.call($.ajax);
$.ajax(jQuery.extend({
type: "GET",
async:false,
url: g.ConfigError,
dataType: "xml",
complete: this.setErrorList
},this));
},
getdata:function(){
this.call($.ajax);
$.ajax({
type: "GET",
async:false,
url: g.ConfigError,
dataType: "xml",
complete: this.setErrorList
});
},
function aaa()
{
this.a=0;
this.str="sdf";
}
aaa.prototype={
getdata:function(){
$.ajax({
type: "GET",
async:false,
url: g.ConfigError,
dataType: "xml",
complete: this.setErrorList
});
},
setErrorList:function(data){
this.str=data;
}
}
function aaa()
{
this.a=0;
this.str="sdf";
}
aaa.prototype={
getdata:function(){
$.ajax({
type: "GET",
async:false,
url: g.ConfigError,
dataType: "xml",
complete: this.setErrorList
});
},
setErrorList:function(data){
this.str=data;
}
}