标签:
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