标签:
var bg_colour = Math.floor(Math.random() * 16777215).toString(16); bg_colour = "#" + ("000000" + bg_colour).slice(-6); document.bgColor = bg_colour;
js获取随机颜色
原文地址:http://www.cnblogs.com/zhenxides/p/5468904.html