void function() {//abcd
do break;while(typeof delete this);
for(var a;;)
if (true) with(null)
try{}catch(a){}finally{} else throw new 1;
switch(1 in 1 instanceof 1) {
case false:
default:
}
return;
};
改进版:
new function() {
do break;while(typeof delete this);
for(var a;void 0;)
continue
if (null)
with(0)
try{
switch(1 in 1 instanceof 1) {
case false:
default:throw true
}
}catch(a){}finally{}else return // console.log("去掉注释可以运行到这里")
};
本文深入探讨了JavaScript中各种控制流程语句的使用方法及其特点,包括do...while循环、for循环、if...else条件判断、with语句、try...catch...finally异常处理以及switch语句等,并通过具体示例代码展示了这些语句的实际应用。
670

被折叠的 条评论
为什么被折叠?



