最佳答案
JavaScript 中有类似于 Python 的 range()的函数吗?
我认为应该有一个更好的方法,而不是每次都写下这样的句子:
array = new Array();
for (i = 0; i < specified_len; i++) {
array[i] = i;
}