jQuery 属性操作 - removeAttr() 方法
2018-07-22 21:48 更新
定义和用法
removeAttr() 方法从被选元素中移除属性。
语法
$(selector).removeAttr(attribute)
参数 | 描述 |
---|---|
attribute | 必需。规定从指定元素中移除的属性。 |
以上内容是否对您有帮助:
removeAttr() 方法从被选元素中移除属性。
$(selector).removeAttr(attribute)
参数 | 描述 |
---|---|
attribute | 必需。规定从指定元素中移除的属性。 |
更多建议: