Removes an attribute from the element.
The parameter attr
is the attribute's name as a string. For example, calling myElement.removeAttribute('align')
removes its align
attribute if it's been set.
示例
语法
removeAttribute(attr)
参数
attr
String:
attribute to remove.
Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!