JS switch case 多条件

参考地址:

正确写法

  switch (type) {
        case "1":case "2":
            URL = 'asd';
            break;
        default:
            Alert.Show("不存在");
            break;
     }
 

猜你喜欢

转载自www.cnblogs.com/Alex-Mercer/p/12306763.html
今日推荐