标签:math 随机 颜色 random rgb style col ret fun
1 function rancolor() { 2 var r = Math.floor(Math.random() * 256); 3 var g = Math.floor(Math.random() * 256); 4 var b = Math.floor(Math.random() * 256); 5 var a = Math.random(); 6 return "rgb(" + r + ‘,‘ + g + ‘,‘ + b + ")"; 7 }
标签:math 随机 颜色 random rgb style col ret fun
原文地址:https://www.cnblogs.com/lprosper/p/9313540.html