参数 | 描述 | ||||||||
---|---|---|---|---|---|---|---|---|---|
function(currentValue, index, arr) | 必需。 数组中每个元素需要调用的函数。 函数参数:
|
reference.forEach((item,index,origin) =>{
console.log(reference[index].type)
})
这样就能获取后台传过来的数组中对象的多条数据
参数 | 描述 | ||||||||
---|---|---|---|---|---|---|---|---|---|
function(currentValue, index, arr) | 必需。 数组中每个元素需要调用的函数。 函数参数:
|
reference.forEach((item,index,origin) =>{
console.log(reference[index].type)
})
这样就能获取后台传过来的数组中对象的多条数据