我有个问题。当我触发此代码时:
function addItem(){
var select = document.getElementById("2");
select.options.length = 0;;
alert("Please wait...");
for (var i = 0; i < array.length; i++) {
select.options[select.options.length] = new Option(array[i]);
}
alert("Images loaded!");
}
在 Internet Explorer 10(在 Windows 8 上)中,它的响应速度非常慢。数组中平均有 35000 个项目,但 Chrome 和 Firefox 没有这个问题......我该怎么做才能让 IE 更流畅?因为这是一个普通的浏览器...