摘要: 1.阻止事件冒泡,使成为捕获型事件触发机制.取消tr里面子元素响应tr定义的事件,在tr子元素里面禁止气泡事件就可以,子元素事件中加入window.event.cancelBubble=true 即可!例子:表格行有一个单击事件,例如:<table> <tr onclick="alert('hello world')"> <td><input type="button" value="增加" onclick="alert('你好!')"/&g 阅读全文
posted @ 2013-01-17 17:46 Caliven 阅读(596) 评论(0) 推荐(0) 编辑