HTML DOM normalize 方法

HTML DOM normalize() 方法

Document 对象参考手册 Document 对象

实例

规范一个文档:


	document.normalize(); 

知识兔 »

定义和用法

normalize 方法合并相邻的文本节点并删除空的文本节点。

浏览器支持

所有主要浏览器都支持 normalize 方法

语法

node.normalize()

参数

None.

返回值

没有返回值。

技术细节

DOM 版本Core Level 2 Node Object

Document 对象参考手册 Document 对象

计算机