js生成随机颜色
function randomColor(){
let chars = '0123456789abcdef'
let colorLength = 6
let color = ''
for (let i = 0; i < colorLength; i++) {
let randomCode = Math.floor(Math.random() * chars.length)
color += chars.substring(randomCode,randomCode+1)
}
return "#" + color
}
function randomColor(){
return `rgb(${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)})`
}