js中给数组中添加新值的方式:

var flow=[];
for(var i=0;i<21;i++){ 
    flow.push(Math.floor(Math.random()*(30+((i%12)*5)))+10);
}
alert(flow);

弹出窗口如下图所示:
js数组设置值操作

 

相关文章:

  • 2021-05-17
  • 2021-11-17
  • 2021-06-29
猜你喜欢
  • 2021-07-28
  • 2022-12-23
  • 2021-11-18
  • 2021-04-01
  • 2021-06-12
  • 2022-01-27
相关资源
相似解决方案