<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<ul class="time">
 <!--秒杀开始时间戳--><li></li>
 <!--秒杀开始时间戳--><li></li>
 <!--秒杀开始时间戳--><li></li>
</ul>

 

<script src="js/jquery.1.11.js"></script>
<script>
$(document).ready(function(e) {
 var dat= new Date, year=dat.getFullYear(),month=dat.getMonth(),date=dat.getDate(),
 h=dat.getHours(),m=dat.getMinutes(),s=dat.getSeconds(),day=dat.getDate();
 //timestamp=Date.parse(date).toString().substr(0,10);//后台配合的时间戳
 $('.time li').each(function(index, element) {
  $(this).html(year+'年'+month+'月'+date+'日'+' '+h+'时'+m+'分'+s+'秒');
    });
});
</script>
</body>
</html>

相关文章:

  • 2021-12-18
  • 2021-06-06
  • 2021-12-22
  • 2021-08-22
  • 2022-02-07
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-19
  • 2021-04-09
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案