我正在用javascript编写代码。
colorMixer = function (redIntensity, blueIntensity, greenIntensity)
{
// mix color
}
colorMixer(10, 8, 7) // means red = 10, blue = 8, green = 7
colorMixer(10, 8) // means red = 10, blue = 8
问题:如何指定red = 10, green = 8
,并且没有值blue
(我不打算为蓝色设置 0 值)我想要蓝色值未知且不希望为蓝色提供任何值的场景。