Jquery和Js获得元素标签名称的方法总结

1、$( this ).get(0).tagName

2、$( this )[0].tagName

3、$( this ).prop("tagName")

4、$( this ).prop("nodeName")


版权声明:本文为ozhy111原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。