目录 switch语法规则example 参考资料 switch 语法规则 switch ?options? string { pattern1 { body1 } ?pattern2 { body2 }? ... ?patternN { bodyN }? } example 参考资料 参考链接