vue过滤 var a = ['red','blure','widhti']; var b = a.filter(function(item,index){ return item.indexOf('r')!=-1 })