首页 > 技术文章 > jQuery获取当前按钮的id
aaronthon 2019-05-17 19:49 原文
function test(e) { $(e.target).attr('id') } // 记得带上点击事件