随机色

    $RandomBgColor() {
      const r = Math.floor(Math.random() * 256)
      const g = Math.floor(Math.random() * 256)
      const b = Math.floor(Math.random() * 256)
      return 'rgba(' + r + ',' + g + ',' + b + ',' + '.3' + ')'
    }

  

posted @ 2020-09-01 15:12  _JZYU  阅读(128)  评论(0编辑  收藏  举报