网站访问次数统计
1,HTML5 提供了方法:localStorage - 没有时间限制的数据存储
<script type="text/javascript">
if (localStorage.pagecount)
{
localStorage.pagecount=Number(localStorage.pagecount) +1;
}
else
{
localStorage.pagecount=1;
}
document.write("Visits "+ localStorage.pagecount + " time(s).");
</script>
2,发送请求访问空的图片,然后在后台进行请求统计