允许日期兼容min,max

取两个集合交集
pull/79/head
liuning 2018-10-18 11:10:46 +08:00
parent d0258bb184
commit 66cbc16e73
1 changed files with 1 additions and 3 deletions

View File

@ -1004,9 +1004,7 @@
var isMatch = allowDays.some(function (day) { var isMatch = allowDays.some(function (day) {
return new Date(day + ' 00:00:00').getTime() == timestrap.now; return new Date(day + ' 00:00:00').getTime() == timestrap.now;
}) })
if (isMatch) { isOut = !isMatch || isOut;
isOut = !isMatch;
}
} }
elem && elem[isOut ? 'addClass' : 'removeClass'](DISABLED); elem && elem[isOut ? 'addClass' : 'removeClass'](DISABLED);
return isOut; return isOut;