js 时间操作积累

 console.log( new Date() );                      //Tue Mar 20 2018 22:47:01 GMT+0800 (中国标准时间)

 // var date = new Date( '2017-04-18 09:16:15'.replace(/-/g,"/") );
 // console.log( date);                          //Tue Apr 18 2017 09:16:15 GMT+0800 (中国标准时间)

猜你喜欢

转载自www.cnblogs.com/hahajava/p/9044232.html
今日推荐