for of 靖铭 2021-03-11 110 阅读1分钟 for of遍历 let arr = [{id:1,name:"张三"}] for(const item of arr){ console.log(item.name) }