XML DOM - Comment 对象
Comment 对象表示文档中注释节点的内容。
Comment 对象
Comment 对象表示文档中注释节点的内容。
Comment 对象的属性
| 属性 | 描述 | IE | F | O | W3C |
|---|---|---|---|---|---|
| data | 可设置或返回此节点的文本 | 6 | 1 | 9 | Yes |
| length | 可返回此节点的文本的长度 | 6 | 1 | 9 | Yes |
Comment 对象的属性
| 方法 | 描述 | IE | F | O | W3C |
|---|---|---|---|---|---|
| appendData() | 向节点追加数据 | 6 | 1 | 9 | Yes |
| deleteData() | 从节点删除数据 | 6 | 1 | 9 | Yes |
| insertData() | 向节点中插入数据 | 6 | 1 | 9 | Yes |
| replaceData() | 替换节点中的数据 | 6 | 1 | 9 | Yes |
| substringData() | 从节点中提取数据 | 6 | 1 | 9 | Yes |