会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Claiyre
路漫漫其修远兮,吾将上下而求索!
博客园
首页
新随笔
联系
订阅
管理
2017年9月10日
setAttribute的浏览器兼容性(转)
摘要: 1.element要用getElementById or ByTagName来得到, 2.setAttribute("class", vName)中class是指改变"class"这个属性,所以要带引号。 3.IE中要把class改成className,.....IE不认class,所以最好写两句,
阅读全文
posted @ 2017-09-10 10:47 Claiyre
阅读(631)
评论(0)
推荐(0)
编辑
公告