我有下表:
$("body").on('click', ".application-checkbox", function (e) {
alert('checkbox');
e.stopPropagation();
});
$('body').on('click', "tr", function (e) {
alert('row');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<table>
<tr>
<td>
<div class="ckbox">
<input type="checkbox" class="application-checkbox" id="checkbox">
<label for="checkbox">label</label>
</div>
</td>
<td></td>
</tr>
</table>
当我单击复选框时,“row”和“checkbox”都会被打印出来。我做错什么了?