From 2298fe1b75a44b95fe05476c5a0b8c6438f22061 Mon Sep 17 00:00:00 2001 From: linwu Date: Wed, 13 Dec 2017 15:39:34 +0800 Subject: [PATCH] =?UTF-8?q?bug=20=E4=BF=AE=E5=A4=8D=EF=BC=8C=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E8=BE=93=E5=85=A5=E6=A8=A1=E5=BC=8F=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E6=9C=88=E4=BB=BD=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/laydate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/laydate.js b/src/laydate.js index 3aa4b41..b78307c 100644 --- a/src/laydate.js +++ b/src/laydate.js @@ -2000,7 +2000,7 @@ year: parseInt(RegExp.$2), month: parseInt(RegExp.$1) - 1 }); - that.listYM[0] = [dateTime.year, dateTime.month]; + that.listYM[0] = [dateTime.year, RegExp.$1]; that.change(0).goToYear(dateTime.year); that.setValue(that.parse(1, dateTime)); } else if (/^([0-1][0-9])[\s\-\\]?([0-1][0-9])[\s\-\\]?(\d{4})$/ig.test(value)) { @@ -2009,7 +2009,7 @@ month: parseInt(RegExp.$1) - 1, date: parseInt(RegExp.$2) }); - that.listYM[0] = [dateTime.year, dateTime.month]; + that.listYM[0] = [dateTime.year, RegExp.$1]; that.change(0).goToYear(dateTime.year); that.setValue(that.parse(1, dateTime)); }