标签:rem 实现 bsp remove on() active lis ade cti
$(".licat-header-list").on("click",function(e){ $(this).addClass("active");//有class名active时,其下边的ul列表显示,否则隐藏 e.stopPropagation(); $("body").one("click",function(e){ $(".licat-header-list").removeClass("active") }); });
js实现点击按钮显示某个区域 然后点击页面中任意其他位置,隐藏该区域
标签:rem 实现 bsp remove on() active lis ade cti
原文地址:http://www.cnblogs.com/dongxiaolei/p/6704404.html