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