javascript肘变
var thing = true; //try changing this to false
thing = !thing; //the variable will go from true to false, or from false to true
稿关测试每种情况下
switch(true) {
case if(constant1 == 1): {
//statements;
break;
}
case if(constant2 == 2): {
//statements;
break;
}
default: {
//statements;
break;
}
}