📅  最后修改于: 2022-03-11 15:03:32.187000             🧑  作者: Mango
代码示例2
var rgbToHex = function (rgb) {
var hex = Number(rgb).toString(16);
if (hex.length < 2) {
hex = "0" + hex;
}
return hex;
};