新建指定长度的数组,填入内容,内容都为固定值

Array.from({length:100}, v => 0);

posted @ 2018-08-07 19:44  刘金宇  阅读(601)  评论(0)    收藏  举报