我的一段代码在IE11中运行正常,但只要我使用" Emulation"并选择IE10,我收到以下错误信息:
此处,4.5指的是https://js.arcgis.com/4.5/
在进一步调查这条线路时,我得到的是:
给我带来麻烦的代码是:
require([
"esri/WebMap"
],
function (WebMap) {
var webmap = new WebMap({
portalItem: {id: "<some long id>"}
});
});
令人费解的事实是,这段代码一直运行到昨天(即使在IE 10上),但现在开始提出问题。我有什么东西可以在这里找到吗?
答案 0 :(得分:0)
I'm not sure why it seemed to work for you earlier. It shouldn't have...
Either way, IE10 is not supported with version 4.x of the ArcGIS API for JavaScript - see https://developers.arcgis.com/javascript/latest/guide/system-requirements/index.html#supported-browsers