首页 > 代码库 > html5页面添加时间戳

html5页面添加时间戳

timestamp=getUrlParam("timestamps");  

 function getUrlParam(name) {
   var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
   var r = window.location.search.substr(1).match(reg);
   if (r != null) return unescape(r[2]); return null;
  }

 

var timestamp1 = Date.parse(new Date());
  var times = timestamp1-timestamp;

html5页面添加时间戳