Browse Source

无JIRA任务,BI.ajax没有用,删掉

es6
dailer 6 years ago
parent
commit
e7dfc233f9
  1. 22
      src/core/platform/web/ajax.js

22
src/core/platform/web/ajax.js

@ -1,22 +0,0 @@
// BI请求
_.extend(BI, {
ajax: function (option) {
option || (option = {});
var async = option.async;
option.data = BI.cjkEncodeDO(option.data || {});
$.ajax({
url: option.url,
type: "POST",
data: option.data,
async: async,
error: option.error,
complete: function (res, status) {
if (BI.isFunction(option.complete)) {
option.complete(BI.jsonDecode(res.responseText), status);
}
}
});
}
});
Loading…
Cancel
Save