随机颜色

156 阅读1分钟
getRandomColor() {
      const hue = Math.floor(Math.random() * 360);
      return `hsl(${hue}, 80%, 80%)`
}