js 增加 onclick 事件

obj.onclick = function(){check(this)}

function check(obj){

  alert(obj)l

}

原文地址:https://www.cnblogs.com/ljl-blog/p/5485084.html