指的是联想搜索的功能?搜索某个关键字,把所有相关的数据匹配出来就行了const data = ['test1', 'test2', 'test3', 'abc']; const key = 'test'; const res = data.filter((v) => v.includes(key));
指的是联想搜索的功能?搜索某个关键字,把所有相关的数据匹配出来就行了