reportMonth: (function (){
var myDate = new Date();
var year = myDate.getFullYear();
var month = myDate.getMonth() + 1;
if (month >= 1 && month <= 9) month = '0' + month
return year +'-'+ month;
})()
js获取当前年月字符串(月份带0)
最新推荐文章于 2023-12-05 17:20:03 发布