getCurrentTime(){var date =newDate();//当前时间var year = date.getFullYear()//年var month =this.repair(date.getMonth()+1);//月var day =this.repair(date.getDate());//日var hour =this.repair(date.getHours());//时var minute =this.repair(date.getMinutes());//分var second =this.repair(date.getSeconds());//秒//当前时间 var curTime = year +"-"+ month +"-"+ day
+" "+ hour +":"+ minute +":"+ second;return curTime;},//若是小于10就加个0repair(i){if(i >=0&& i <=9){return"0"+ i;}else{return i;}},