颜色转16进制 functionRGB2Hex(rgb){ varre=rgb.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");//利用正则表达式去掉多余的部分 varhexColor="#"; varhex=['0','1','2','3','4','5','6','7','8','9','A','B','C','D',... Other 2024-01-12 44 点赞 0 评论 66 浏览