【uniapp 开发】日期工具类 -- DateUtil

日期格式转毫秒值 var time = ‘2019-08-08 12:09:34’; var time222 = time.replace("-", "/").replace("-", "/"); var timestamp = Date.parse(time222); 毫秒值转日期格式 formatDate:function(date, fmt) { if (/(y+)/.tes
相关文章
相关标签/搜索