💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
当你需要要生成一个0-99的数组 方案1 ~~~ const createArr = (n) => Array.from(new Array(n), (v, i) => i) const arr = createArr(100) // 0 - 99 数组 ~~~ 方案2 ~~~ const createArr = (n) => new Array(n).fill(0).map((v, i) => i) createArr(100) // 0 - 99数组 ~~~