A-XiongLiJun / blog_comments

留言评论模板
0 stars 0 forks source link

toRGB函数 | 皖熊的博客 #12

Open A-XiongLiJun opened 3 years ago

A-XiongLiJun commented 3 years ago

https://a-xionglijun.github.io/2020/11/20/torgb/

转换 CSS 中的颜色编码如:// alert(toRGB(‘#0000FF’)) // 输出 rgb(0, 0, 255)// alert(toRGB(‘invalid’)) // 输出 invalid// alert(toRGB(‘#G