filter 是根据返回的值是否为真来判断是否保留元素,所以可以这样实现. Array.prototype.filter = Array.prototype.filter || function(func) { var arr = this;
確定! 回上一頁