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