📜  如何制作 javascript for 循环 - Javascript 代码示例

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

代码示例1
var tops = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
for (let i = 0; i < tops.length; i++) {
  document.write(tops[i] + "tops");
}