1. 程式人生 > >Jquery和Js獲得元素標籤名稱的方法總結

Jquery和Js獲得元素標籤名稱的方法總結

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

2、$( this )[0].tagName

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

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