首页 > 其他 > 详细

属性模块

时间:2016-09-21 09:01:41      阅读:171      评论:0      收藏:0      [点我收藏+]
setAttribute
getAttribute
removeAttribute
var el = document.createElement("div")
el.setAttribute("xxx", "1")
el.setAttribute("XxX", "2")
el.setAttribute("XXx", "3")
console.log(el.getAttribute("xxx"))
console.log(el.getAttribute("XxX"))

 

属性模块

原文:http://www.cnblogs.com/jzm17173/p/5891358.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!