<div οnclick="alert('div')">
<input type="button" οnclick="alert('input');event.cancelBubble=true" value="测试">
<input type="button" οnclick="alert('input');" value="测试">
</div>
<input type="button" οnclick="alert('input');event.cancelBubble=true" value="测试">
<input type="button" οnclick="alert('input');" value="测试">
</div>