functioncoloring(){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})`}
document.body.style.background =coloring()
方法一:function coloring() { 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})`}document.body.style.background = coloring()方法二:function c