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

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

原文地址:https://www.cnblogs.com/liujinyu/p/9439046.html