課程
/前端開發(fā)
/JavaScript
/JavaScript入門篇
obj.removeAttribute("style");怎么用的
removeAttribute?有什么用處嗎,用法是什么
2018-04-11
源自:JavaScript入門篇 4-1
正在回答
翻譯過來就是移除屬性,作用是移除元素的屬性。
例如,var a = document.getElementById("ID");
a.removeAttribute("color");
作用就是移除該元素的color屬性。
舉報(bào)
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門
3 回答removeAttribute
1 回答removeAttribute
1 回答removeAttribute()
2 回答removeAttribute()
4 回答removeAttribute
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-04-12
翻譯過來就是移除屬性,作用是移除元素的屬性。
例如,var a = document.getElementById("ID");
a.removeAttribute("color");
作用就是移除該元素的color屬性。