//搜索功能
searchData: function() {
var sName = this.sName.replace(/\s+/g,"");
if (sName) {
//1.字符全检测
// return this.screenUserList.filter(function(product) {
// return Object.keys(product).some(function(key) {
// return String(product[key]).indexOf(sName) > -1
// })
// })
//2.数组中某一项检测
return this.screenUserList.filter(function (product) {
return product.yhm.indexOf(sName) > -1|| product.userrealname.indexOf(sName) > -1;
})
}
return this.screenUserList;
}
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。