摘要:
Array.prototype.phpfind = function(conditionFunc) { console.log('conditionFunc',conditionFunc) for (var i = 0; i < this.length; i++) { //console.log(t 阅读全文
摘要:
let arr = [ {name:'test1',age:1}, {name:'test2',age:2}, {name:'test3',age:3} ] let temp = arr.findIndex(function(item){ console.log(item.name) return 阅读全文