XML DOM Comment 对象

Comment 对象

Comment 对象代表文档中注释节点的内容。

Comment 对象的属性

属性 描述
data 设置或返回该节点的文本。
length 返回该节点的文本长度。

Comment 对象的方法

方法 描述
appendData() 将数据追加到节点。
deleteData() 从节点中删除数据。
insertData() 将数据插入节点中。
replaceData() 替换节点中的数据。
substringData() 从节点中提取数据。