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