# 网站底部添加网站运行与总数统计 **Repository Path**: xaiolu1314/Website-Statistics-Learning ## Basic Information - **Project Name**: 网站底部添加网站运行与总数统计 - **Description**: 如何在网站底部添加网站运行统计与访问总数统计 - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: xiaolu - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-08 - **Last Updated**: 2025-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README - - 1. # 网站底部添加网站运行与总数统计 - - 1. #欢迎来我博客学习: https://www.xn--yetq47i.top/archives/38.html - - 1. ##分两部分做 - - 1. 一.添加运行时间统计 - - 1. 二.添加访问总数量 - - 1. 我爱学习 - - 1. 首先实现的是网站运行时间 - - 1. 一.两个行代码+JS文件处理实现 - - 1. 1.把下面代码放index.html 的footer页角你想放位置 - - 1. 添加首页index.html前端代码 - - 1. 复制图片上代码到你首页footer里: https://gitee.com/xaiolu1314/Website-Statistics-Learning/blob/xiaolu/index.html - - 1. - - 1. 2.在你/assets/js/文件夹创建一个Sitetime.js - - 1. 复制下面代码,Ctrl C Ctrl V - - 1. 复制粘贴js文件.png - - 1. 复制文件内容到Sitetime.js: https://gitee.com/xaiolu1314/Website-Statistics-Learning/blob/xiaolu/assets/js/Sitetime.js - - 1. - - 1. 3.修改js你实现的发布时间:Sitetime . js代码 - - 1. 修改网站上线时间.png - - 1. 二.实现网站总访问量 - - 1. 1.这里用到不蒜子,两行代码搞定,复制粘贴就行 - - 1. 访问总数统计代码.png - - 1. 复制图片上代码到你首页footer里: https://gitee.com/xaiolu1314/Website-Statistics-Learning/blob/xiaolu/index.html - - 1. - - 1. 三.下面是编程软件修改的效果图 - - 1. 显示效果1.png - - 1. 四.下面是我网站上线实际效果图啦 - - 1. 上线显示效果2.png - - 1. 2、整一个学习源代码代码放gitee: >> 需要自取