for of

110 阅读1分钟

for of遍历 let arr = [{id:1,name:"张三"}] for(const item of arr){ console.log(item.name) }