單項選擇題document對象中用于創(chuàng)建一個屬性節(jié)點(diǎn)的方法是()

A.createAttributeNode
B.createElement
C.createAttribute
D.createTextNode


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題document對象中通過文本內(nèi)容創(chuàng)建文本節(jié)點(diǎn)的方法是()。

A.createText
B.createElement
C.createAttribute
D.createTextNode

2.單項選擇題通過元素的()屬性可以獲取當(dāng)前元素節(jié)點(diǎn)的所有屬性節(jié)點(diǎn)。

A.getAttribute
B.setAttribute
C.hasAttribute()
D.attributes

3.單項選擇題用于判斷元素節(jié)點(diǎn)是否有指定的屬性存在的方法是()。

A.getAttribute
B.setAttribute
C.hasAttribute()
D.attributes

4.單項選擇題通過節(jié)點(diǎn)的()屬性訪問其最后一個子節(jié)點(diǎn)。

A.firstChild
B.lastChild
C.nextElementSibling
D.previousElementSibling

5.單項選擇題通過節(jié)點(diǎn)的()屬性訪問其第一個子節(jié)點(diǎn)。

A.firstChild
B.lastChild
C.nextElementSibling
D.previousElementSibling