|  |      1zcf0508      2022-07-13 11:18:19 +08:00 在 methods 里把 dayjs 相关的方法暴露出去就可以了 | 
|  |      2magewu1223ll      2022-07-13 11:22:33 +08:00 把包下下来 放进你的项目里 | 
|  |      3coolair OP @zcf0508 老哥,怎么操作的,直接在 js 里面暴露然后再 wxml 里面调用? <tag value="{{ dayjs(mydatetime).format('YYYY-MM-DD HH:mm:ss') }}" /> 像上面这样写,没有效果啊。 | 
|  |      4zcf0508      2022-07-13 13:22:48 +08:00 methods:{ dayjsformat(datetime,format):{ return dayjs(datetime).format(format) } } | 
|  |      6zcf0508      2022-07-13 17:44:26 +08:00 @coolair <tag :value="{{ dayjsformat(mydatetime,'YYYY-MM-DD HH:mm:ss') }}" /> |