仅IE支持clearAttributes/mergeAttributes方法
摘要:
仅IE中HTMLElement元素具有clearAttributes/mergeAttributes方法,它们都是非标准的。一、.clearAttributes()该方法用来清除所有用户定义的属性。如下<div style="color:red;" onclick="alert(1)" data-a="a" data-b="b">Division</div><script> var div = document.getElementsByTagName('div' 阅读全文