function CallAjax(url, data, callBack) {//请求数据
jQuery.ajax({
type: "post",
async: true,
url: url,
data: data,
cache: false,
success: function (result) {
try {
return callBack(JSON.parse(result));
} catch (e) {
return callBack(result);
}
},
error: function (e) {
throw e.message;
}
});
}
jQuery.ajax({
type: "post",
async: true,
url: url,
data: data,
cache: false,
success: function (result) {
try {
return callBack(JSON.parse(result));
} catch (e) {
return callBack(result);
}
},
error: function (e) {
throw e.message;
}
});
}