我做了简单的点击功能,但它在 IE 中无法正常工作。I have two box first name is 'big'当second is 'small'你click on big it will alert massage. Big is parent of 'small' box所以如果你click on small it will also alert. 产生错误的步骤。单击黑色 div 并且不要离开鼠标按钮将其拖动到红色 div 它不会在 Firefox 中提醒按摩,但它会在 IE 中提醒按摩。示例代码链接
$(function () {
$('.big').click(function () {
alert(0)
})
})