- 十六进制颜色,方法1
const randomHex = () => `#${
Math.floor(Math.random() * 0xffffff).toString(16).padEnd(6, "0")}`;
console
const randomHex = () => `#${
Math.floor(Math.random() * 0xffffff).toString(16).padEnd(6, "0")}`;
console