时间日期
等风也在等着你
一管长啸待人吹
展开
-
小程序wxml使用js函数
方法1直接在wxml里面写<wxs module="filter"> var day= function(value) { console.log(value) // value = value.replace(".000+0000","Z"); var time = getDate(value); var year = time.getFullYear(); var month = time.getMonth() + 1;原创 2021-05-20 09:57:28 · 1408 阅读 · 0 评论 -
时间戳减时间戳获取天数
嘻嘻<view class="topBox"> <view class="names">{{user.name}}</view> <view class="userTime" wx:if="{{user.qrCodeType == 1}}"> 您的绿码有效期还剩余 <view class="{{timeData != 7 ? 'time' : 'time timeRed'}}">{{tim原创 2021-05-12 19:12:34 · 1457 阅读 · 0 评论