jQuery 屬性操作參考手冊(cè)
從任何 p 元素中移除 id 屬性:
$("button").click(function(){ $("p").removeAttr("id"); });
removeAttr("id")
親自試一試
removeAttr() 方法從被選元素中移除屬性。
$(selector).removeAttr(attribute)
如對(duì)本文有疑問(wèn),請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答!! 點(diǎn)擊進(jìn)入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號(hào)