http://community.csdn.net/Expert/TopicView3.asp?id=5715458
=========
刚结贴太快
三位都对
哈 不是这点分的问题
是我太浮躁 没仔细看你们答案
道歉

解决方案 »

  1.   

     回复人:Jinglecat(晓风残月 >> 问题需简洁,错误要详细) ( 两星(中级)) 信誉:94  2007-08-17 16:00:33  得分:0

    我测试了一下,对于 removeNode 具有一个布尔型参数 fDeep,指示是否进行递归删除子点,默认此值为 false直接使用 removeNode() 只是删除了 tr 节点本身 td 没有删除导致后续删除 parentNode 获取不对
      

  2.   

    本来,我还准备多写点意见,可惜你就揭了,以为你不会再 check 了现在还是贡献出来,就是 ->parentElement removeNode children .... 这些 API 都是 IE 才支持的,应该使用parentNode removeChild childNodes .... 等标准 DOM API当然 IE 并无完全实现 DOM 2在具备同样功能时,尽量选择标准 DOM API, 以便跨浏览器事实上,我对 DOM js dhtml css 并熟悉,只是需要的时候才去 DIY,现学现用,
    难免经常出错,幸好我学会了使用 
    MSDN 和 Mozila 的在线开发文档
      

  3.   

    哈 谢谢啊
    最后用的是 parentNode
      

  4.   

    怎么查?
    DOM API和 IE API
      

  5.   

    DOM 原始文档当然是 W3C 上面的 RFC ,但是那只适合浏览器开发者使用,应用开发者,开起头大....MSDN Web Dev
    http://msdn2.microsoft.com/en-us/library/Aa286532.aspxMozila Dev Center
    http://developer.mozilla.org/cn/docs/首页中的相关连接
    对于 MSDN 中,假如是标准信息,它会在 Standard Info 中指出比如
    http://msdn2.microsoft.com/en-us/library/ms536702.aspxremoveChild Method
    Removes a child node from the object.Syntax
    oRemove = object.removeChild(oNode)
    ParametersoNode Required. Object that specifies the element to be removed from the document. Return ValueReturns a reference to the object that is removed.ResThe node to be removed must be an immediate child of the parent object.This method is accessible at run time. If elements are removed at run time, before the closing tag is parsed, areas of the document might not render.In Microsoft Internet Explorer 6, This method now applies to the attribute object. Example
    ..............Standards InformationThis method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 . http://www.w3.org/tr/2000/wd-dom-level-1-20000929/
      

  6.   

    全E啊 
    汗一个=========MS Script 我有一个中文的 chm 版本,你可以请求 [email protected],搞 Dev,没有耐心看 en doc 是不得行的  ...