动态平添js事件
动态添加js事件
行的onclick事件这样写不可以。 tr.onclick="trClick(this)"; 换成 tr.onclick=Function("trClick(this)"); 就可以了。