js阻止冒泡 兼容 代码
function btn_click(){
if (event.stopPropagation) {
// this code is for Mozilla and Opera
event.stopPropagation();
}
else if (window.event) {
// this code is for IE
window.event.cancelBubble = true;
}
}
//单机事件时阻止事件继续执行,阻止下面代码的执行。
//单机页面时执行代码块
$(document).click(function () {
$(".xjnr").hide();
$(".reply").hide();
});