颜色转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 133 点赞 2 评论 201 浏览