当前位置:网站首页>JS label syntax jumps out of multiple loops
JS label syntax jumps out of multiple loops
2020-11-09 23:48:00 【Ah ho boy】
https://zhuanlan.zhihu.com/p/32051963
Don't abuse it .... The best end result of this thing is to abandon it ...
Me too. Before vue that rfc Only to learn that js There are also such things
Yes c/c++ goto It's internal
let i = 0
let j = 0
out: for (i = 0; i < 3; i++) {
console.log("i", i, j)
for (j = 0; j < 3; j++) {
console.log("j", i, j)
if (j === 1) {
// break
break out;
}
}
}
console.log("end")
/*
i 0 0
j 0 0
j 0 1
i 1 1
j 1 0
j 1 1
i 2 1
j 2 0
j 2 1
end
*/
/*
i 0 0
j 0 0
j 0 1
end
*/
版权声明
本文为[Ah ho boy]所创,转载请带上原文链接,感谢
边栏推荐
- Baishan cloud technology is selected as the top 100 Internet enterprises in China in 2020
- Nodejs: handwritten koa Middleware
- crm系统的成本一般是多少?
- 团灭 LeetCode 打家劫舍 问题
- C/C++编程笔记:C语言开发坦克大战!纪念我们逝去的小霸王游戏
- Software engineering in code -- source code analysis of menu project
- sql 筛选查询重复列
- Error running app:Default Activity not found 解决方法
- ES6、ES7、ES8学习指南
- CUDA_获取指定设备
猜你喜欢
随机推荐
Apache Hadoop的重要组成
Error running app:Default Activity not found 解决方法
CUDA_存储器模型
SQL intercepts the data before and after the '.'
input 与 button 的问题 (空隙/不等高/对不齐)及 解决办法
SRM系统是什么系统?SRM供应商管理系统功能
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
自己上手写性能测试工具(二)
Hand in hand to teach you to use container service tke cluster audit troubleshooting
Prometheus安装配置
CUDA_全局内存及访问优化
Interviewer: what are cache penetration, cache avalanche and cache breakdown?
IP address SSL certificate
Youtube订阅——解决在弹窗内使用Youtube订阅按钮高度显示不全的问题
Postman (1) -- function introduction
11.9
函数计算进阶-IP查询工具开发
What is the architecture of a live broadcast system worth more than $1 billion?
C/C++编程笔记:C语言开发坦克大战!纪念我们逝去的小霸王游戏
SQL case conversion, remove the space before and after