以下为两种解决方法
1.在父元素的点击事件加上判断语句
$("body,.case_close").click(function (e) {
if (e.target == e.currentTarget){//防止父元素覆盖资源的绑定事件操作
//执行父元素的事件
location.href="dsindex.html?page=c"
}
})
2.在子元素点击事件加上如下语句
$("#banner").click(function (e) {
e.stopPropagation();
})