实例
下面的代码片段使用 loadXMLDoc() 把 "books_comment.xml" 载入 xmlDoc 中。
Comment 对象
Comment 对象表示文档中注释节点的内容。
Comment 对象属性
Comment 对象方法
| 方法 | 描述 | 
|---|---|
| appendData() | 向节点追加数据。 | 
| deleteData() | 从节点删除数据。 | 
| insertData() | 向节点中插入数据。 | 
| replaceData() | 替换节点中的数据。 | 
| substringData() | 从节点中提取数据。 | 
下面的代码片段使用 loadXMLDoc() 把 "books_comment.xml" 载入 xmlDoc 中。
Comment 对象表示文档中注释节点的内容。
| 方法 | 描述 | 
|---|---|
| appendData() | 向节点追加数据。 | 
| deleteData() | 从节点删除数据。 | 
| insertData() | 向节点中插入数据。 | 
| replaceData() | 替换节点中的数据。 | 
| substringData() | 从节点中提取数据。 |