vue获取当前月(1-9月用0补齐)
getMonth: (function (){
let curDate = new Date();
let year = myDate.getFullYear();
let month = myDate.getMonth() + 1;
if (month >= 1 && month <= 9) month = '0' + month
this.curMonth = year +'-'+ month;
return this.curMonth
})()