来不及了,先记下

时间:2017-03-08 21:33:22   收藏:0   阅读:217

toLocaleDateString

  1. var date = new Date(‘Thu May 12 2016 08:00:00 GMT+0800 (中国标准时间)‘);  
  2. formatTime=date.getFullYear() + ‘-‘ + (date.getMonth() + 1) + ‘-‘ + date.getDate() + ‘ ‘ + date.getHours() + ‘:‘ + date.getMinutes() + ‘:‘ + date.getSeconds();

原文:http://www.cnblogs.com/yourstars/p/6523061.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!