From 81042fdbf76876aeaa27bb445e859117c63c72d6 Mon Sep 17 00:00:00 2001 From: LyLme Date: Thu, 12 May 2022 13:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=A9=BA=E7=99=BD=E5=A4=84=E5=85=B3=E9=97=AD=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/default/js/script.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/template/default/js/script.js b/template/default/js/script.js index 1b465ab..60d4ce1 100644 --- a/template/default/js/script.js +++ b/template/default/js/script.js @@ -56,8 +56,13 @@ $(function() { }) }) - - +//点击空白处关闭导航 +$(document).mouseup(function(e){ + var _con = $('.type-left'); + if(!_con.is(e.target) && _con.has(e.target).length === 0){ // Mark 1 + _con.toggleClass('showListType',false) + } +}); //显示日期和时间 function show() {