html;<div onclick="test(this)">测试</div>js:function test(obj){} 文章来源: js中使用在标签中添加onclick时间传当前对象 标签 js onclick test