最近新写的需求有这么一个小功能,对列表的数据进行过滤(支持多个词,相信大家都会想到使用正则匹配来做
代码如下:
let data = [
{
title: 'Sponsored Amazon' },
{
title: 'Bounty' },
{
title: 'Paperless Kitchen Dish Cloths' },
{
title: 'Centerpull' },
最近新写的需求有这么一个小功能,对列表的数据进行过滤(支持多个词,相信大家都会想到使用正则匹配来做
代码如下:
let data = [
{
title: 'Sponsored Amazon' },
{
title: 'Bounty' },
{
title: 'Paperless Kitchen Dish Cloths' },
{
title: 'Centerpull' },