嗨,我是用单张areaselect,当我使用Internet Explorer上的删除功能,我得到了以下错误:单张Areaselect上删除Internet Explorer
SCRIPT438: Object doesn't support property or method 'remove'
File: leaflet-areaselect.js, Line: 45, Column: 9
难道有人对你的支持来运行这个功能IE浏览器 ?我尝试了Chrome和Firefox,并没有问题。
var areaSelect = L.areaSelect({
width:100,
height:150,
keepAspectRatio:true
}).addTo(map);
areaSelect.remove();
这里的测试用例上Plunker:http://plnkr.co/edit/Snj1cB?p=preview
为您添加了一个测试用例和错误消息,并且可以说我的Internet Explorer 11.0.9600.17501更新11.0.15更新了11.0.15 – iH8 2015-02-11 23:36:34
嗨,我尝试了IE 11并且它可以正常工作,但IE10不能正常工作。 – 2015-02-12 11:52:31
非常奇怪,对我来说不是。但后来又出现了与Firefox不一致的问题,在我回答下面的Github问题中,有人说他有Firefox问题,但他/她有Ubuntu。我对Firefox没有任何问题。必须是修订/更新的东西 – iH8 2015-02-12 11:57:13