微信小程序获取时间 、 你新建一个项目就有一个utils /util文件 里面有个formatTime 方法 他需要一个data参数 wxml <text>{{time}}</text> js 就OK了 相关文章: