摘要: switch(value){ case 'test':{ const VarName = 'test' break } case 'test2':{ const VarName = 'test2' break } } MDN: switch 语句内的块级作用域 阅读全文
posted @ 2021-03-22 17:21 letleon 阅读(58) 评论(0) 推荐(0) 编辑