Array.prototype.contains = function (obj) { return this.indexOf(obj) >= 0 } 复制代码
问:上面的代码有什么问题吗?ui
没想出答案,你们看看呢?this