【JS】【26】把字符串转换为日期

var str = "2008-04-02 10:08:44";
var date = new Date(str) 
原文地址:https://www.cnblogs.com/huashengweilong/p/11045691.html