$(document).bind("click",function(e){
var target = $(e.target);
if(target.closest(".arrow,#input1").length == 0){/*.closest()沿 DOM 树向上遍历,直到找到已应用选择器的一个匹配为止,返回包含零个或一个元素的 jQuery 对象。*/
$('.price-calendar-bounding-box').css('display','none');
};
e.stopPropagation();
})
var target = $(e.target);
if(target.closest(".arrow,#input1").length == 0){/*.closest()沿 DOM 树向上遍历,直到找到已应用选择器的一个匹配为止,返回包含零个或一个元素的 jQuery 对象。*/
$('.price-calendar-bounding-box').css('display','none');
};
e.stopPropagation();
})