html5中event获取data和class

获取data和class

var tare=$(e.relatedTarget).data("id");
var tar=event.target;
console.log(tare);
console.log(tar);
console.log(tar.dataset['id']);
console.log(tar.classList);
html5中event获取data和class

html5中event获取data和class

 




html5中event获取data和class

 

posted @ 2018-08-22 11:45 韦邦杠 阅读(...) 评论(...) 编辑 收藏

相关文章: