格式化符合要求的时间格式-函数封装
2020-09-07T09:19:47.000+0000 ==> 2020-09-07 09:19:47
let time = '2020-09-07T09:19:47.000+0000';
function cuttingTime(time){
let t1 = time.split('T');
let t2 = t1[1].split('.');
return t1[0] + ' ' + t2[0];
}
本文来自博客园,作者:JackieDYH,转载请注明原文链接:https://www.cnblogs.com/JackieDYH/p/17634510.html