var viewValue = "2014-04-04 23:33:34" // 在谷歌上可以正确解析,而在ie与edge上缺解析不了 f = new Date(viewValue).getTime(); console.log(f); //解决方式 f = new Date(Date.parse(viewValue.replace(/-/g,"/"))).getTime(); console.log(f);