You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constinfiniteIterable={[Symbol.iterator](){constthisRef=thisreturn{value: true,// or any other valuenext(){returnthisRef[Symbol.iterator]()}}}}for(let_ofinfiniteIterable){// ...}
Activity
dondonZh commentedon Jul 19, 2019
while(true){
}
for(let i = 0;i<0;i++){
}
NicholasBaiYa commentedon Jul 19, 2019
循环/递归不设置结束条件。
function fn(n){
fn(n+1)
}
ghost commentedon Jul 19, 2019
非常规解法
fireairforce commentedon Jul 19, 2019
while(1){
console.log('%%%%');
}
xxf1996 commentedon Jul 19, 2019
while
for
nowherebutup commentedon Jul 19, 2019
1.递归不限制条件
2.while(true){ }
Konata9 commentedon Aug 20, 2019
循环如果能结束就不是死循环,即设置一个永远达不到的结束条件就能造成死循环。
kruzabc commentedon Jan 8, 2020
递归不优化做无限循环就容易爆栈,从而报错。
smile-2008 commentedon Jul 1, 2021
xiaoqiangz commentedon Jun 23, 2022
1 递归不限制条件
2 while(true){}