const drDataArr = [{ date: 0, type: '心率', value: 82 },{ date: 1, type: '心率', value: 80 },{ date: 2, type: '心跳', value: 60} ] let xlType = drDataArr.filter(function (obj) { return obj.type == '心率' }) console.log(xlType) // [{date: 0, type: '心率', value: 82},{date: 1, type: '心率', value: 80}]