JS:按钮单击时,如何获得自己的ID? 其中加粗百的this是相对你的代度码增加的部分。 然后在你页面问的js中写一个函数如下:答 function test(element){ alert(element.id) }