var arr = [1, 2]; arr[arr.length] = 3; console.log(arr); // 速度比 push 快
转载于:https://www.cnblogs.com/ax-null/p/6804449.html