一道面試題-前端

Array.prototype.contains = function (obj) {
	return this.indexOf(obj) >= 0
}
複製代碼

問:上面的代碼有什麼問題嗎?ui

沒想出答案,你們看看呢?this

相關文章
相關標籤/搜索