function Color(){
        var r = Math.floor(Math.random()*255).toString(16);
        var g = Math.floor(Math.random()*255).toString(16);
        var b = Math.floor(Math.random()*255).toString(16);
        r = r.length == 1 ? "0" + r : r;
        g = g.length == 1 ? "0" + g : g;
        b = b.length == 1 ? "0" + b : b;

        return "#"+r+g+b;
    }

 

 

 

相关文章:

  • 2021-09-29
  • 2021-08-26
  • 2022-12-23
  • 2021-12-30
  • 2021-10-31
  • 2021-05-23
  • 2021-10-29
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2020-04-14
相关资源
相似解决方案