优化页面

This commit is contained in:
pengxiaolong
2025-06-17 22:04:18 +08:00
parent 8ec7365e7c
commit e464d99af5
86 changed files with 627 additions and 178 deletions

View File

@@ -0,0 +1,10 @@
function DifferenceArray(targetTimestamp) {
const now = Date.now() / 1000; // 获取当前时间戳(秒)
// 计算时间差(秒)并转换为小时
const diffHours = Math.ceil((targetTimestamp - now) / 3600);
// 生成包含小时数的数组
return Array.from({ length: diffHours }, (_, i) => String(i + 1));
}
export default DifferenceArray;