设为首页 加入收藏

TOP

点击除指定区域外的空白处,隐藏div
2019-09-17 18:37:49 】 浏览:19
Tags:点击 指定 域外 空白处 隐藏 div
<script>
$(document).click(function (e) {
    var $target = $(e.target);
//点击.zanpl和.quanzipl以外的地方 隐藏.quanzipl和footer
if(!$target.is('.zanpl *') && !$target.is('.quanzipl *')) { 
$(
'.quanzipl').hide();
$(
'footer').show(); }
});

</script>

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇使用layer.msg 时间设置不起作用 下一篇Vee-validate 父组件获取子组件表..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目