> 其他 >
在switch语句中,不一定使用break语句对吗.请举例说明
人气:119 ℃ 时间:2020-09-20 04:49:47
解答
switch(''){
case '': return null;
case'': a=1+1;
}看不懂,麻烦大神举个好懂的例子额,没看到。意思就是相当于if判断,在每一种情况下可以执行自己的代码,或者break,return都行。
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版