arr.splice(0, arr.length); prototype扩展: Array.prototype.clear = function() { this.splice(0, this.length); };. //call: arr.clear(); ...
確定! 回上一頁