From 66cbc16e734dbda20d04727ef5fab6234f0d2d6c Mon Sep 17 00:00:00 2001 From: liuning Date: Thu, 18 Oct 2018 11:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=97=A5=E6=9C=9F=E5=85=BC?= =?UTF-8?q?=E5=AE=B9min,max=20=E5=8F=96=E4=B8=A4=E4=B8=AA=E9=9B=86?= =?UTF-8?q?=E5=90=88=E4=BA=A4=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/laydate.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/laydate.js b/src/laydate.js index e67ca3d..13882a1 100644 --- a/src/laydate.js +++ b/src/laydate.js @@ -1004,9 +1004,7 @@ var isMatch = allowDays.some(function (day) { return new Date(day + ' 00:00:00').getTime() == timestrap.now; }) - if (isMatch) { - isOut = !isMatch; - } + isOut = !isMatch || isOut; } elem && elem[isOut ? 'addClass' : 'removeClass'](DISABLED); return isOut;