05 2021 档案

摘要:选择时间 1 lastMonthTime(){ //30天前 2 this.timeList(30) 3 }, 4 timeList(Xday){ //获取时间 5 let myDate = new Date(); //时间 6 let year = myDate.getFullYear() //年 阅读全文
posted @ 2021-05-26 14:29 伊人兮明眸秋水 阅读(48) 评论(0) 推荐(0) 编辑
摘要:使用uniapp 直接复制全部代码粘贴到页面就可以使用,确定引入的moment.js文件位置 1 <template> 2 <view> 3 <view class="one"> 4 {{starTime}} 5 <view class=""> 6 7 </view> 8 {{temporaryTi 阅读全文
posted @ 2021-05-06 16:19 伊人兮明眸秋水 阅读(741) 评论(0) 推荐(0) 编辑
摘要:1、首先下载 moment.js 地址 http://momentjs.cn/ 2、引入使用 将moment.js放到需要的文件内(在uniapp小程序内使用) import moment from '../../utis/moment.js' 3、具体操作参考 http://momentjs.cn 阅读全文
posted @ 2021-05-06 14:55 伊人兮明眸秋水 阅读(1276) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示