作者:mobiledu2502883857 | 来源:互联网 | 2023-10-12 13:00
123var time = ....//获取时间为2015-03-19 00:00var effected_at = new Date(Date.parse(time.replace(/-/g, "/
1 2 3
| var time = ....//获取时间为2015-03-19 00:00
var effected_at = new Date(Date.parse(time.replace(/-/g, "/")));
var effected_at = effected_at.toISOString() |
得到为2015-03-19T00:00:00.000Z
如题,谢谢!