任何人都可以将此while循环转换为for循环。我会很感激的。 var index = 0; while (true) log(index++);
2 回答
宝慕林4294392
TA贡献2021条经验 获得超8个赞
var x = true;
for (var index = 0; x == true) {
log(index++)
}
//if x is never set to false you could very quickly suffer a memory leak
添加回答
举报
0/150
提交
取消