常规解法 arr.filter(item => item['key']==='yourValue').length !== 0 黑科技 JSON.stringify(arr).indexOf('"type":2') !== -1