onInput(event) {
const { detail, currentTarget } = event;
const date = new Date(detail);
var newDate = reFun.dateFormat("YYYY-mm-dd", date)
},
结果:
标签:onInput,格式化,dateFormat,detail,时间,date,const,event
来源: https://www.cnblogs.com/lude1994/p/14880439.html