ES5
Array.apply(null,{length:100})
Object.keys(Array.apply(null,{length:100}));

ES6
[...Array(100)]

 

posted on 2017-10-10 17:31  百里登风  阅读(392)  评论(0编辑  收藏  举报