📜  将“rgb(34,54,44)”转换为数组 [34,54,44] - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:04.088000             🧑  作者: Mango

代码示例1
// This will convert "rgb(r,g,b)" into [r,g,b] so we can use the "+" to convert them back to numbers before using toString 
  rgb = rgb.substr(4).split(")")[0].split(separator);