event.target.getAttribute('id')

w获取点击对象id

原文地址:https://www.cnblogs.com/rsapaper/p/6377621.html