JS里面怎么把字符串转换成Date

来源:互联网 发布:沈天津seo诊断 编辑:程序博客网 时间:2024/05/17 04:39
var date= new Date(Date.parse(time.replace(/-/g,   "/"))); //转换成Date();