标签:world 一个 元素 comm bsp 插入 节点 增加 creat
使用document.createComment().
document.body.prepend(document.createComment(‘helloworld‘));
如上所示, 我们在body子元素顶部增加了一个注释节点: <!--helloworld-->
标签:world 一个 元素 comm bsp 插入 节点 增加 creat
原文地址:https://www.cnblogs.com/aisowe/p/11546417.html