js时间转化
var date = new Date(); console.log(date);//Tue Sep 26 2017 14:34:27 GMT+0800 (CST) console.log(new Date().toLocaleString());//2017/9/26 下午2:34:27 var d = new Date().getTime(); console.log(d);//1506408973192 console.log(new Date(d).toLocaleString());//2017/9/26 下午2:56