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

XML DOM removeAttributeNS() 方法


Element 對(duì)象參考手冊(cè) Element 對(duì)象

定義和用法

removeAttributeNS() 方法刪除通過(guò)命名空間和名稱指定的屬性。

語(yǔ)法

elementNode.removeAttributeNS(ns,name)
參數(shù) 描述
ns 必需。規(guī)定要?jiǎng)h除的屬性的命名空間。
name 必需。規(guī)定要?jiǎng)h除的屬性的名稱。

實(shí)例

實(shí)例

xmlDoc=loadXMLDoc("books_ns.xml"); x=xmlDoc.getElementsByTagName("title")[0]; ns="/w3cnote/"; document.write("Attribute Found: "); document.write(x.hasAttributeNS(ns,"lang")); x.removeAttributeNS(ns,"lang"); document.write("<br>Attribute Found: "); document.write(x.hasAttributeNS(ns,"lang"));

輸出:

Attribute Found: true
Attribute Found: false

運(yùn)行代碼 ?

Element 對(duì)象參考手冊(cè) Element 對(duì)象其他擴(kuò)展