📅  最后修改于: 2022-03-11 15:04:27.698000             🧑  作者: Mango
function isValidColor(strColor) {
var s = new Option().style;
s.color = strColor;
// return 'false' if color wasn't assigned
return s.color == strColor.toLowerCase();
}