2024年08月07日 建站教程
自定义属性getAttribute(name)、setAttribute(name,value)、removeAttribute(name)不兼容ie6/7怎么解决?下面web建站小编给大家简单介绍一下具体解决方法!
解决方法:
obj.index = 1 // 设置 console.log(obj.index) // 获取 obj.index = '' //清空
ps:功能一样!
本文链接:http://so.lmcjl.com/news/10212/