获取标签的属性值

原生js获取方法
dom.getAttribute('xxx')

jquery获取方法
$dom.attr('xxx')

原文地址:https://www.cnblogs.com/ey-151210/p/5304942.html