用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://www.jxjierui.cn/article/geioig.html


咨询
建站咨询
