var arr = [2, 2, 3, 4] Array.prototype.first = function() { return this[0]; } console.log(arr.first()); // prints 1. And now every array in our global scope ...
確定! 回上一頁