//字符串var day="dd";switch (day){case "dd": x="day it's dd"; break;case "ff": x="day it's ff"; break;default: x="day is default";}
输出
"day it's dd"