阅读背景:

如何使用普通javascript删除父元素。

来源:互联网 

How do I remove the parent element and all the respective nodes using plain JavaScript? I'm not using jQuery or any other library. In other words, I have an element and when user clicks on it, I want to remove the parent of the parent element (as well as the respective children nodes).How do I remove the parent element and all the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: