通过ES6中的数组操作方法some进行判断. const flag=数组名.some((item)=>{ if(item.指定属性===需要判断的属性)return true; }) // 通过返回的布尔类型进行相应的处理 if