Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

element.removeAttribute

removeAttribute 从指定的元素中移除一个属性 removes an attribute from the specified element.

Syntax

element.removeAttribute(
attrName) 
  • attrName

是一个存在于 element 中的属性字符串 is a string that names the attribute to be removed from element .

文档标签和贡献者

 此页面的贡献者: teoli, ziyunfei, Xiaobian
 最后编辑者: teoli,