testSel.options.length = 0; for (var i = iMin; i <= iMax; i++) { testSel.options.add(new Option(i, i)); }
testShow.innerHTML += "new Option方法:" + (new Date().getTime() - dt) + " 毫秒;";
dt = new Date().getTime();
testSel.options.length = 0; for (var i = iMin; i <= iMax; i++) { var op = document.createElement("option"); op.value = i; op.innerHTML = i; testSel.appendChild(op); }