From a1d47cc4b73f9fc3fd99b704494adc443a8a3743 Mon Sep 17 00:00:00 2001 From: RubyLouvre Date: Thu, 23 May 2013 02:39:25 +0800 Subject: [PATCH] update ms-value --- index6.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index6.html b/index6.html index 317e22a7..60690128 100644 --- a/index6.html +++ b/index6.html @@ -121,14 +121,19 @@ vm.$watch("currentMonth", function(val) { var d = vm.currentDate; d.setMonth(val); + console.log(getWeeks(d)) vm.currentWeeks = getWeeks(d); + console.log( vm.currentWeeks) vm.title = NaN; }); vm.$watch("currentYear", function(val) { var d = vm.currentDate; + val = ~~val d.setFullYear(val) + vm.currentWeeks = getWeeks(d); + vm.title = NaN; }); //高亮当前选中的日期 @@ -178,10 +183,10 @@ Next
{{title}}