elementUI默认显示当前月份
vue代码:script代码:var date = new Date();var year = date.getFullYear();var month = date.getMonth();var toMonth = year + “-” + (month + 1) ;this.value1 = toMonth;
·
vue代码:
script代码:
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth();
var toMonth = year + “-” + (month + 1) ;
this.value1 = toMonth;
更多推荐
已为社区贡献3条内容
所有评论(0)