document.getElementById("abc").removeNode(true)

解决方案 »

  1.   

    document.getElementById("abc").removeNode(true)
      

  2.   

    来个不一样的~~var node=document.getElementById("abc");
    node.parentNode.removeNode(node);
      

  3.   

    各位,firefox里通不过啊,只能IE用
      

  4.   

    楼上的,如果我没有记错的话,好像是这样写:
    var node=document.getElementById("abc");
    node.parentNode.removeChild(node);或:document.removeChild(node);
    removeChild方法返回被删除的节点.
    ^.^
      

  5.   

    谢谢楼上的,node.parentNode.removeChild通过FF了
      

  6.   

    牛啊,头一次用removeNode(true),还真能删除......