JS生成随机颜色值

JS生成随机颜色值

/*随机颜色值*/
	function randomColor(){
		var r = Math.floor(Math.random() * 255);
		var g = Math.floor(Math.random() * 255);
		var b = Math.floor(Math.random() * 255);
		return "rgb("+r+","+g+","+b+")";
	}


验证码: 看不清楚?