- Rob--Rob 我没有口袋IE可以玩,但这种语法在IE浏览器中工作正常。和Firefox。你试过循环选项集合吗? 将每个选项设置为'null? var i = opt.length; while(i - ){ opt [1] = null; } 或 while(opt [0]){ opt [0] = null; } 或使用removeChild方法? var i = opt.length; while(i - ){ opt [i] .parentNode.removeChild(opt [i]); } 或 var sel = opt [ 0] .parentNode; while(sel.firstChild){ sel.removeChild(sel.childNodes [0]); } 或以上的组合? [...] - RobI don''t have pocket IE to play with, but that syntax works fine in IEand Firefox. Have you tried looping through the options collection andsetting each option to ''null?var i = opt.length;while ( i-- ){opt[1] = null;}orwhile ( opt[0] ){opt[0] = null;}or using the removeChild method?var i = opt.length;while ( i-- ){opt[i].parentNode.removeChild(opt[i]);}orvar sel = opt[0].parentNode;while ( sel.firstChild ){sel.removeChild(sel.childNodes[0]);}or some combination of the above?[...]--Rob 这篇关于删除Pocket IE上的选择选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 20:52