JS在在线人数和访问人数

var date=new Date();
var expiresDays=10;
var count=1500+parseInt(date.getTime()/1000)-parseInt(date.getTime()/1000000)*1000;
visits = count + Math.round(Math.random());
zong = 1716920;
zong += count + Math.round(Math.random());
document.write("今天访问人数:" + visits + "   总访问人数:" + zong);

原文地址:https://www.cnblogs.com/lazb/p/6961642.html