This commit is contained in:
2025-07-22 13:52:05 +08:00
parent 8ea67fd810
commit 33ceb7a85a
13 changed files with 382 additions and 172 deletions

View File

@ -13,6 +13,16 @@ export function choseRbgb(color,opcity) {
return `rgba(${r},${g},${b},${a})`
}
}
// 随机十六进制颜色
export function randomHexColor() { // 随机生成十六进制颜色
var hex = Math.floor(Math.random() * 16777216).toString(16);
while (hex.length < 6) {
hex = '0' + hex;
}
return '#' + hex;
}
// 今天周几
export function weekValidate() {
let week = new Date().getDay()