.removeAttribute("style")
想了半天也沒想出來怎么定義取消設(shè)置的函數(shù),有了各位大佬的啟發(fā)終于知道可以用
.removeAttribute("style");但是,這個(gè)關(guān)鍵字在哪學(xué)過?? 想用className形式來著,后來不行,而且.className忘記刪了導(dǎo)致.removeAttribute("style");也沒成功,幸好發(fā)現(xiàn)了,不然又得糾結(jié)半天
想了半天也沒想出來怎么定義取消設(shè)置的函數(shù),有了各位大佬的啟發(fā)終于知道可以用
.removeAttribute("style");但是,這個(gè)關(guān)鍵字在哪學(xué)過?? 想用className形式來著,后來不行,而且.className忘記刪了導(dǎo)致.removeAttribute("style");也沒成功,幸好發(fā)現(xiàn)了,不然又得糾結(jié)半天
2017-05-27
舉報(bào)
2017-05-28
XML DOM removeAttribute() 方法Element 對(duì)象參考手冊
學(xué)dom時(shí)會(huì)涉及http://www.w3school.com.cn/xmldom/met_element_removeattribute.asp