diff --git a/bi/core.js b/bi/core.js index e4b54a49a..b50973e43 100644 --- a/bi/core.js +++ b/bi/core.js @@ -9178,12 +9178,12 @@ $.extend(BI, { must: false }, options); config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path; - this.$import(config.url, config.type,config.must); + this.$import(config.url, config.type, config.must); }, $import: function () { var _LOADED = {}; // alex:保存加载过的 function loadReady(src, must) { - var $scripts = $("head script"); + var $scripts = $("head script, body script"); $.each($scripts, function (i, item) { if (item.src.indexOf(src) != -1) { _LOADED[src] = true; diff --git a/docs/core.js b/docs/core.js index 6fe5dd752..1a49400a5 100644 --- a/docs/core.js +++ b/docs/core.js @@ -17625,12 +17625,12 @@ $.extend(BI, { must: false }, options); config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path; - this.$import(config.url, config.type,config.must); + this.$import(config.url, config.type, config.must); }, $import: function () { var _LOADED = {}; // alex:保存加载过的 function loadReady(src, must) { - var $scripts = $("head script"); + var $scripts = $("head script, body script"); $.each($scripts, function (i, item) { if (item.src.indexOf(src) != -1) { _LOADED[src] = true; diff --git a/src/core/utils/load.js b/src/core/utils/load.js index a036152f7..83a073d89 100644 --- a/src/core/utils/load.js +++ b/src/core/utils/load.js @@ -9,12 +9,12 @@ $.extend(BI, { must: false }, options); config.url = BI.servletURL + '?op=' + config.op + '&resource=' + config.path; - this.$import(config.url, config.type,config.must); + this.$import(config.url, config.type, config.must); }, $import: function () { var _LOADED = {}; // alex:保存加载过的 function loadReady(src, must) { - var $scripts = $("head script"); + var $scripts = $("head script, body script"); $.each($scripts, function (i, item) { if (item.src.indexOf(src) != -1) { _LOADED[src] = true;