点击空白处 div隐藏掉了

$(document).on('click',function (e) {
var target = $(e.target);
if(target.closest(".login-box").length == 0){
$(".login-box").hide();
}
})
posted @ 2016-04-11 13:36  霏霏雪无声  阅读(130)  评论(0编辑  收藏  举报