jquery获取标签名,获取id

var elementId = $(this).attr("id");

 var tagName = $(this)[0].tagName;

 

posted @ 2017-12-24 13:47  法捷耶夫  阅读(9823)  评论(0编辑  收藏  举报