2

我确信这可能是一个初学者问题,但是,我试图同时过滤ongoingall_day。怎么能做到这一点.filter()呢?

<CurrentRefinements
  transformItems={items =>
    items.filter(item => item.attribute !== 'ongoing', 'all_day')
  }
/>
4

1 回答 1

1

要包含多个条件,请使用&&or添加||

items.filter(item => item.attribute !== 'ongoing' && item.attribute !== 'all_day')
于 2019-11-19T15:20:24.323 回答