g***@qq.com
g***@qq.com
  • 发布:2019-04-28 12:10
  • 更新:2019-04-28 12:10
  • 阅读:1218

【报Bug】uni-app 【hello uniapp】 /common/util.js

分类:uni-app

bug1. 文件路径/common/util.js

的时间不对

        // 此处将getDay(),修改为getDate()                                                      ↓这里是bug  
        return date.getFullYear() + '/' + _format(date.getMonth() + 1) + '/' + _format(date.getDate()) + '-' +  
            _format(date.getHours()) + ':' + _format(date.getMinutes());  

        // 同时建议添加时间戳转为Date对象返回  
        if(typeof(time)=='number'){  
            return new Date(time*1000);  
        }
2019-04-28 12:10 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复