//显示日期在页面上 yyy-MM-dd
function init(){
var date=new Date();
//
var year=date.getFullYear();
//
var month=date.getMonth()+1;
//
var day=date.getDate();
//
var hh=date.getHours();
//
var mm=date.getMinutes();
//
var ss=date.getSeconds();
var rq=year+"年"+month+"月"+day+"日"+hh+":"+mm+":"+ss;
document.getElementById("rq").innerHTML=rq;
}

 


 

相关文章:

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