<script>
function CurentTime() {
var now = new Date(); var year = now.getFullYear(); // var month = now.getMonth() + 1; // var day = now.getDate(); // var hh = now.getHours(); // var mm = now.getMinutes(); // var ss = now.getSeconds(); // if (month < 10) { month = '0' + month; } if (day < 10) { day = '0' + day; } if (hh < 10) { hh = '0' + hh; } if (mm < 10) { mm = '0' + mm; } if (ss < 10) { ss = '0' + ss; } //时分秒 var result = hh + ":" + mm + ":" + ss; //年月日时分秒 // var result = year + '-' + month + '-' + day + ' ' + hh + ":" + mm + ":" + ss; return result; } </script>

 

相关文章:

  • 2021-11-29
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-01-02
  • 2021-12-29
猜你喜欢
  • 2021-12-07
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
相关资源
相似解决方案