function getDataTimeNow() {
            var nowstr = new Date();
            var datenow = nowstr.getFullYear() + "-"
                     + ((nowstr.getMonth() + 1) < 10 ? "0" : "") + (nowstr.getMonth() + 1) + "-"
                     + (nowstr.getDate() < 10 ? "0" : "") + nowstr.getDate()
                     + " "
                     + (nowstr.getHours() < 10 ? "0" : "") + nowstr.getHours() + ":"
                     + (nowstr.getMinutes() < 10 ? "0" : "") + nowstr.getMinutes() + ":"
                     + (nowstr.getSeconds() < 10 ? "0" : "") + nowstr.getSeconds();
            return datenow;

        }

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-09-29
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2022-12-23
  • 2022-02-10
相关资源
相似解决方案