弹出框点击消失

$('td.showModal').on('click',function(e){
        e.stopPropagation();
        $(document).on('click',function(e){
            
            obj = $(e.srcElement || e.target);
            if(!$(obj).is('.am-modal *')){
                close();
            }
            
        })

你可能感兴趣的:(弹出框点击消失)