let f = length => Array.from({length}).map((v,k) => k);
console.log( f(4) );
console.log( f(10) );
let f = length => Array.from({length}).map((v,k) => k);
console.log( f(4) );
console.log( f(10) );
本文标题:2018-10-07 js快速生成数组
本文链接:https://www.haomeiwen.com/subject/efilaftx.html
网友评论