$(document).bind("click",function(e){
            if($( e.target ).closest(".game-container").length == 0){
                alert(111);
                $(".game-container").hide();//game-container是弹框的样式名称
            }else{
                alert(222);//这里是点击弹框的事件
            }
        })

posted on 2014-06-03 17:48  幸福之家128817  阅读(731)  评论(0编辑  收藏  举报