removeAttribute() 方法删除指定的属性

来源:互联网 发布:西澳大学数据科学好吗 编辑:程序博客网 时间:2024/06/03 14:43

此方法与 removeAttributeNode() 方法的差异是:removeAttributeNode() 方法删除指定的 Attr 对象,而此方法删除具有指定名称的属性。结果是相同的。同时此方法不返回值,而 removeAttributeNode() 方法返回被删除的属性,以 Attr 对象的形式。

参阅 removeAttributeNode() 方法

阅读全文
0 0
原创粉丝点击