From e7dfc233f974f86907fb644ec823d5adc1efc213 Mon Sep 17 00:00:00 2001 From: dailer Date: Thu, 23 May 2019 09:57:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1,BI.ajax?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=94=A8,=E5=88=A0=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/ajax.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/core/platform/web/ajax.js diff --git a/src/core/platform/web/ajax.js b/src/core/platform/web/ajax.js deleted file mode 100644 index 5ec028df2..000000000 --- a/src/core/platform/web/ajax.js +++ /dev/null @@ -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); - } - } - }); - } -}); \ No newline at end of file