javascript如何将时间字符串转化为时间
javascript将时间字符串转化为时间的方法:1、根据毫秒数构建Date对象,代码为【var date = new Date(timestamp)】;2、格式化日期,代码为【dateTime =date.toLocaleString】。本教程操作环境:windows7系统、javascript1.8.5版,DELL G3电脑。javascript将时间字符串转化为时间的方法: 对于时间字符串格式为:"2017-03-03 12:23:55";IE:显示无效的日期12new Date("2017-03-