$(table).click(function(){
alert(1)
})
$(table tbody tr).click(funtion(){
alert(2)})
这样子只会alert(1) 不会弹出2 有啥办法让他们都执行吗
$(table).click(function(){
alert(1)
})
$(table tbody tr).click(funtion(){
alert(2)})
这样子只会alert(1) 不会弹出2 有啥办法让他们都执行吗
tr点击事件也是table点击的时间 直接用:
$(table tbody tr).click(funtion(){
alert(1);
alert(2);
}),