增加 点击空白处关闭导航分组

This commit is contained in:
LyLme 2022-05-12 13:13:02 +08:00
parent 6b453f02f5
commit 81042fdbf7
1 changed files with 7 additions and 2 deletions

View File

@ -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() { function show() {