61,129
社区成员




<html>
<body>
<table width="200" border="1">
<tr onClick="aaa(event)">
<td>
<input type="checkbox" value="che" onClick="bbb(event)">
</td>
</tr>
</table>
<script type="text/javascript">
function aaa(){
alert('tr的任务')
}
function bbb(e){
alert('check的任务');
if(window.event) event.cancelBubble = true;
else e.stopPropagation();
}
</script>
</body>
</html>
<html>
<body>
<table width="200" border="1">
<tr onClick="aaa()">
<td>
<input type="checkbox" value="che" onClick="bbb()">
</td>
</tr>
</table>
<script type="text/javascript">
function aaa(){
alert('tr的任务')
}
function bbb(){
event.cancelBubble = true;
alert('check的任务')
}
</script>
</body>
</html>