【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
相關文章
相關標籤/搜索