标签:AC new time tar start ios 获取 art star
var ff=‘2018-04-30 14:20:30‘;
var reg = /-| |:/g;
var IosstartTime=ff.replace(reg,‘,‘);
var str = IosstartTime+ ‘‘;
var arr = str.split(‘,‘);
var vv = new Date(arr[0], arr[1], arr[2], arr[3], arr[4], arr[5]);
alert(vv);
标签:AC new time tar start ios 获取 art star
原文地址:https://www.cnblogs.com/james-L/p/8947161.html