<span v-text="timeNow"></span>

data里面:

timeNow:''

mounted里面:

  mounted:function(){
    var myDate = new Date();
    myDate.setDate(myDate.getDate() + 1);
    console.log(myDate.toLocaleDateString())
    this.timeNow = myDate.toLocaleDateString();
  },

 

Logo

前往低代码交流专区

更多推荐