js中 swith 与 break位置的细节

xiaoxiao2022-06-11  29

function aa(a) { switch (a) { case 1: console.log("A") break; case 2: console.log("B") case 3: console.log("C") case 4: console.log("D") break; } } aa(2);

输出结果为

B C D

流程框图为

转载请注明原文地址: https://www.6miu.com/read-4931908.html

最新回复(0)