var x = 0, n = 0; while (x<10) { x++; n += x; } console.log(n);//55
js简单实现累加
猜你喜欢
转载自www.cnblogs.com/chao202426/p/11542147.html
今日推荐
周排行