$.ajax({
type:callType,
url:url,
data:requestBody,
crossDomain:true,
success:function (returnData, status, xhr) {
alert("DB1.1");
callback(returnData.response ? returnData.response : returnData);
alert("DB1.2");
},
error:function (jqXHR, exception) {
if (errcallback) {
alert("DB2.1 "+jqXHR+" "+exception.message);
errcallback(jqXHR, exception);
} else {
alert("exception in making [" + url + "] :[" + exception + "]");
}
},
timeout:1200000,
dataType:dataType,
async:true
});
//如果带有输出DB2.1 [object object] undefined
的块,它会给出错误没有使用ajax调用和已经在chrome和firefox中工作的IE8。