小技巧

JS

Array

  1. 构建固定长度的空数组
    Array.apply(null, { length: 20 })
    
原文地址:https://www.cnblogs.com/TravellingKite/p/8640176.html