摘要:
首先点击显示某个div,然后要求再次点击时消失,或者点击document的其他地方会隐藏掉这个层,涉及到冒泡的问题,阻止document冒泡到dom上。代码如下: var $el = $(".search-more, .article-query-list li"); $el.click(function(e){ e.stopPropagation(); $(this).toggleClass(... 阅读全文
posted @ 2017-11-06 13:23
Web前端架构
阅读(1785)
评论(0)
推荐(0)

浙公网安备 33010602011771号