html代码:
<button id = "new" onclick="showme()"></button>
jquery代码:
function showme(){
console.log($(this).attr('id'));
}
html代码:
<button id = "new" onclick="showme()"></button>
jquery代码:
function showme(){
console.log($(this).attr('id'));
}