动态添加鼠标事件

1.obj.attachEvent("onclick",function funname(par1,par2,...){})
2.onj.onclick=obj2.onclick

3.NewTdObj0.onclick = new Function("f_tdclick(this)"); //单击第一列相对应单击“+”打开其子目录      4.NewTdObj0.onclick=function()
{
    this.parentElement.children(0).children(0).click()
 }
原文地址:https://www.cnblogs.com/goldnet/p/986381.html