|
楼主 |
发表于 2018-10-10 10:41:36
|
显示全部楼层
var state="";
var me =this;
var option= {
context : this.getContext(),
contentType : "application/json",
dataType : "application/json",
action : "SyncSAPAssetTypeData",
async : false,
directExecute : true,
callback : function(d) {
state = d.response;
if(state=="S"){
me.comp("messageDialog1").show({type:"OK",title:"同步成功!"});
}else{
me.comp("messageDialog1").show({type:"OK",title:"同步失败!"});
}
}
};
biz.Request.sendAsyncBizRequest(option);
上面这段语句中,大概一分钟的时候,就会自动返回错误,其中 d.response.statusText的值是 "Gateway Time-out" |
|