在条件语句中检查多个变量是否为真的最有效方法是什么?请看我下面的例子
var a = "Complete";
var b = "Complete";
var c = "Complete";
var d = "Complete";
var e = "Complete";
//make this more efficient
if (a == "Complete" && b == "Complete" && c == "Complete" && d == "Complete" && e == "Complete") {
//do something
}
谢谢你的帮助。