摘要:
Array.prototype.phpfind = function(conditionFunc) { console.log('conditionFunc',conditionFunc) for (var i = 0; i < this.length; i++) { //console.log(t 阅读全文
posted @ 2022-08-24 23:16
盘思动
阅读(27)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2022-08-24 22:46
盘思动
阅读(110)
评论(2)
推荐(0)