(js)new Date() 怎么取年月日 <div class="time"><span>{{time}}</span> </div>data() { return {time: new Date().toLocaleDateString(), } }, 解决参考地址