//解决ios和安卓选择时间出现NAN
let datestr = "2018-12-10 20:13:13";
console.log(new Date(datestr.replace(/-/g, "/")).valueOf());
2022-10-02 19:17:24
//解决ios和安卓选择时间出现NAN
let datestr = "2018-12-10 20:13:13";
console.log(new Date(datestr.replace(/-/g, "/")).valueOf());