04 2020 档案
摘要:组件链接: https://ext.dcloud.net.cn/plugin?id=258 使用(有坑,要注意) <template> <view class="content"> <view class="bg"> <view class="continueDay">连续签到:{{getData.
阅读全文
摘要:limitFormatTime(date) { var that=this; // 日期格式为 [2019-05-09 20:10:10] date = date.replace(/\-/g,'/'); var timestamp = (new Date(date)).valueOf(); var
阅读全文
摘要:方法一(在单页面中使用) //与data() 同级 filters:{ //设置一个函数来进行过滤 formaDate:function(dateStr,pattern = ''){ let str=parseInt(dateStr.toString().padEnd(13,'0')); let d
阅读全文