用jQuery实现点击页面其他位置,关闭弹出框

$(document).click(function (e) {
    var drag = $("#drag"),
        dragel = $("#drag")[0],
        target = e.target;
    if (dragel !== target && !$.contains(dragel, target)) {
        drag.hide();
    }
});

当前题目:用jQuery实现点击页面其他位置,关闭弹出框
文章URL:http://xwwzsj.com/article/geioig.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款