forked from fanruan/fineui
dailer
6 years ago
1 changed files with 0 additions and 22 deletions
@ -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…
Reference in new issue