單項選擇題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
最新試題
下列選項中,利用對象字面量創(chuàng)建對象的說法正確的有()
題型:多項選擇題
下列選項中,屬于img元素內(nèi)置屬性的有()
題型:多項選擇題
下列選項中,屬于清除定時器方法的有()
題型:多項選擇題
下列選項中,哪些情況屬于跨域請求()
題型:多項選擇題
可以在HTML文檔中輸出內(nèi)容的是()
題型:單項選擇題
Visual Studio Code編輯器簡體中文語言擴(kuò)展是()
題型:單項選擇題
可以用來檢索、替換那些符合某個模式的文本的是()
題型:單項選擇題
下列選項中,用于通過控制臺查看結(jié)果的語句是()
題型:單項選擇題
下列選項中,當(dāng)頁面加載完畢后會觸發(fā)的事件是()
題型:單項選擇題
關(guān)于代碼“var obj ={x:10,y:20}”說法錯誤的是()
題型:單項選擇題