data(){ return{ value1=‘’ }} methods:{ getdatatime(){//默认显示今天 this.value1= new Date(); }, } mounted() { let that = this; that.getdatatime() } 复制代码
本文共 192 字,大约阅读时间需要 1 分钟。
data(){ return{ value1=‘’ }} methods:{ getdatatime(){//默认显示今天 this.value1= new Date(); }, } mounted() { let that = this; that.getdatatime() } 复制代码
转载地址:http://lzzql.baihongyu.com/