jayGold
 var currentTime = eval(\'new Date(\' +你要转换的时间格式.replace(/\d+(?=-[^-]+$)/,
                     function (a) { return parseInt(a, 10) - 1; }).match(/\d+/g) + \')\');

  JS用来把  yyyy-MM-dd HH:mm:ss 转换成  Date格式

分类:

技术点:

相关文章:

  • 2021-05-27
  • 2022-01-20
  • 2022-12-23
  • 2021-11-28
  • 2021-12-22
  • 2021-12-26
  • 2022-01-07
  • 2021-10-10
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-11-28
  • 2022-01-26
  • 2021-12-27
  • 2021-06-03
  • 2021-12-08
相关资源
相似解决方案