JQuery获得当前元素id董德多2019年9月2日0 html代码: button id = new onclick=showme()/button jquery代码: function showme(){ console.log($(this).attr(id));}