标签:循环输出 doc fun 调用 scores core i++ div int
示例
var scores = [24, 32, 17]; // A数组
var arrayLength = scores.length;// 数组的长度
//当i<arrayLength时,可以按顺序访问数组中的值
for (var i = 0; i < arrayLength; i++) {
var B=scores[i];//调用数组中的值
println(B)
}
function println(a) {
document.write(a+"<br>")
}
标签:循环输出 doc fun 调用 scores core i++ div int
原文地址:https://www.cnblogs.com/max-hou/p/8930993.html