会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
琥珀君的博客
技术点亮生命,产品温暖人心,探讨CODING真谛,感悟工匠精神。 Q1217356608
首页
新随笔
联系
管理
2019年6月1日
H5_0017:通过元素自定义属性值获取元素对象,并获取属性值
摘要: // 通过元素的属性值查找对象 // document.querySelectorAll("[data]").forEach(function(e) { // var t = e.getAttribute("data-fire") // $(e.currentTarget).attr("data")
阅读全文
posted @ 2019-06-01 10:44 琥珀君
阅读(748)
评论(0)
推荐(0)
编辑