时间戳在ios上面显示NAN Bug

ios只能识别2019/05/30 20:08:40 这种格式的字段

// 后端传的值是2019-05-30 20:08:40.0
let time = res.data.replace(/\-/g,'/').replace(/\.0/g,'')
posted @ 2020-09-15 14:26  weekai  阅读(196)  评论(0)    收藏  举报