?
?1 产生随机颜色
?
var getRandomColor = function(){
??return? '#' +
????(function(color){
????return (color +=? '0123456789abcdef'[Math.floor(Math.random()*16)])
??????&& (color.length == 6) ?? color : arguments.callee(color);
??})('');
}
document.write( "<div style='color:"+ getRandomColor() +"'>222222</div>" );
?
?
?
?
?
?
?
?
?
?
?
?