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