微信扫一扫
1.js的自定义属性格式
element.setAttribute("data-time",2)
2.获取自定义属性的值
element.getAttribute("data-time")
相关推荐