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;
};
// or
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 写一段最短的代码,用上js所有关键字
JavaScript控制流程解析
最新推荐文章于 2023-09-19 16:31:57 发布
本文深入探讨了JavaScript中各种控制流程语句的使用方法及其特点,包括但不限于do...while循环、for循环、if...else条件判断、with语句、try...catch...finally异常处理以及switch-case选择结构等,并通过具体示例代码进行了解析。

210

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



