HTML DOM normalize 方法
最后更新于:2022-03-26 22:12:20
HTML DOM normalize() 方法
Document 对象
实例
规范一个文档:
document.normalize();
尝试一下 »
定义和用法
normalize 方法合并相邻的文本节点并删除空的文本节点。
浏览器支持





所有主要浏览器都支持 normalize 方法
语法
参数
None.
返回值
没有返回值。
技术细节
DOM 版本 |
Core Level 2 Node Object |
Document 对象