封装一个JS函数,调用之后可以将任意某个元素的背景色改为任意色
javascript吧
全部回复
仅看楼主
level 1
争气的坤 楼主
封装一个JS函数,调用之后可以将任意某个元素的背景色改为任意色
2020年04月26日 15点04分 1
level 1
争气的坤 楼主
求个答案,刚学完JS基础,老师布置的作业,求答案[不高兴]
2020年04月26日 15点04分 2
level 6
有偿可以帮你搞
2020年04月27日 06点04分 3
level 8
……你是发作业的么……都是些基础问题
2020年04月28日 03点04分 4
level 6
考察随机数的运用,仅供参考
function randomColor({
let r =Math.floor(Math.random()*255);
let g = Math.floor(Math.random()*255);
let b = Math.floor(Math.random()*255);
return 'rgb('+r+','+g+','+b+')';
}
2020年04月29日 14点04分 5
level 4

2020年05月05日 04点05分 6
1