js 判断数组里是否已存在某个对象 let arr1Data=[],obj={} obj = { name: e.month, value: 0 } if (JSON.stringify(arr1Data).indexOf(JSON.stringify(obj)) === -1) { arr1Data.push(obj) }