获取tagname

$("#id").attr("tagName");

$("#id").get(0).tagName;

$("#id")[0].tagName;

原文地址:https://www.cnblogs.com/AaronLi/p/2172315.html