js随机颜色生成

return '#'+('00000'+(Math.random()*0x1000000<<0).toString(16)).slice(-6);

原文地址:https://www.cnblogs.com/wqing/p/4810029.html