现在的位置: 首页 > 综合 > 正文

document.getElementById(‘selCatalog’).remove(i)突然无效???!

2012年12月24日 ⁄ 综合 ⁄ 共 158字 ⁄ 字号 评论关闭
//document.getElementById('selCatalog').remove(i);
以前都是这样用的,可是今天不知道为什么无效了,估计和xhtml有关,采用下面方法可以
document.getElementById('selCatalog').options[i].removeNode(true);

抱歉!评论已关闭.