访问统计访问次数的html代码
<html>
<head>
<title>访问次数统计</title>
<script type="text/javascript">
function increaseCount() {
var count = parseInt(document.getElementById("count").innerHTML);
count++;
document.getElementById("count").innerHTML = count;
}
</script>
</head>
<body onload="increaseCount();">
<h1>欢迎访问本站!</h1>
<p>本站已被访问 <span id="count">0</span> 次。</p>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/bKhM 著作权归作者所有。请勿转载和采集!