05 2021 档案
摘要:选择时间 1 lastMonthTime(){ //30天前 2 this.timeList(30) 3 }, 4 timeList(Xday){ //获取时间 5 let myDate = new Date(); //时间 6 let year = myDate.getFullYear() //年
阅读全文
摘要:使用uniapp 直接复制全部代码粘贴到页面就可以使用,确定引入的moment.js文件位置 1 <template> 2 <view> 3 <view class="one"> 4 {{starTime}} 5 <view class=""> 6 7 </view> 8 {{temporaryTi
阅读全文
摘要:1、首先下载 moment.js 地址 http://momentjs.cn/ 2、引入使用 将moment.js放到需要的文件内(在uniapp小程序内使用) import moment from '../../utis/moment.js' 3、具体操作参考 http://momentjs.cn
阅读全文