function randomColor(){
let r = Math.floor(Math.random()*256)
let g = Math.floor(Math.random()*256)
let b = Math.floor(Math.random()*256)
return "rgb("+r+','+g+','+b+")"
}
js 随机生成颜色值
猜你喜欢
转载自blog.csdn.net/weixin_41013537/article/details/83177155
今日推荐
周排行