中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

XML DOM nodeValue 屬性


Attr 對象參考手冊 Attr 對象

定義和用法

nodeValue 屬性設(shè)置或返回節(jié)點(diǎn)的值,根據(jù)其類型。

語法

attrObject.nodeValue

實(shí)例

實(shí)例

xmlDoc=loadXMLDoc("books.xml"); x=xmlDoc.getElementsByTagName('book'); for(i=0;i<x.length;i++) { document.write(x.item(i).attributes[0].nodeName); document.write(" = "); document.write(x.item(i).attributes[0].nodeValue); document.write(" (nodetype: " + x.item(i).attributes[0].nodeType + ")"); document.write("<br>"); }

輸出:

category = COOKING (nodetype: 2)
category = CHILDREN (nodetype: 2)
category = WEB (nodetype: 2)
category = WEB (nodetype: 2)

運(yùn)行代碼 ?

Attr 對象參考手冊 Attr 對象其他擴(kuò)展