📜  如何使用 jquery 创建数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:19.353000             🧑  作者: Mango

代码示例1
var length = 5;
var array = [];
var i = 0;

for (i = 0; i != length; i++){
  array.push(i)
  //array.push is used to push a value inside array
} 

console.log(array);

//console.log is used to check array value inside your console