使用:将上面方法放到js当中,然后调用下面的方法,即可获取随机生成的颜色
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
js 生成随机数(含随机颜色)
得到8位不重复的随机id ‘1h1obpbd’
javascript 前端 Math 随机数 十六进制 -
生成随机颜色
生成一个随机的颜色:const randomColor = Math.floor(Math.random()*16777215).toS
javascript html 用例 -
js 生产随机颜色
'#' + Math.random().toString(16).substr(2, 6).toUpperCase();
javascript 开发语言 ecmascript