标签:ref 弹出层 其他 asc log java logs nbsp com
转自 https://www.cnblogs.com/nangezi/p/9157112.html
//点击其他区域,隐藏弹出层
$(document).bind("click", function(){ $(".header .search").css({‘opacity‘:‘0‘,‘visibility‘:‘hidden‘}); $(‘.search-contain #show_header_search‘).removeClass(‘on‘); })
//给弹出层绑定点击事件,阻止冒泡
$(".header .search").bind("click", function(){ event.stopPropagation();//==========阻止冒泡2 })
标签:ref 弹出层 其他 asc log java logs nbsp com
原文地址:https://www.cnblogs.com/qing1304197382/p/12015837.html