
自定义属性getAttribute(name)、setAttribute(name,value)、removeAttribute(name)不兼容ie6/7怎么解决?下面web建站小编给大家简单介绍一下具体解决方法!
解决方法:
obj.index = 1 // 设置 console.log(obj.index) // 获取 obj.index = '' //清空
ps:功能一样!
阻止事件冒泡e.stopPropagation()不兼容ie6/7/8解决方法
阻止默认行为ev.preventDefault()不兼容ie6/7/8解决方法
标签: getAttribute, removeAttribute, setAttribute, 兼容IE6, 兼容IE7
上面是“getAttribute(name) 不兼容ie6/7解决方法”的全面内容,想了解更多关于 js 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_4303.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

 php用最简单的方法将数组转sql类型
 360AI云盘:360公司推出的AI云存储服务,360GB的初始免费存储空间
 韩国Naver网页版首页入口,附外网使用教程及网站基本介绍