const col = Math.floor(Math.random() * 16777215).toString(16)
box.style.background = "#" + col
怎么用js的随机数获取随机颜色?
最新推荐文章于 2024-07-12 20:49:16 发布
const col = Math.floor(Math.random() * 16777215).toString(16)
box.style.background = "#" + col