js 数组过滤 filter

 

let res = this.list.filter(item => routeEqual(this.currentRouteObj, item) || item.name === this.$config.homeName)
posted @ 2019-04-04 11:06  彭成刚  阅读(557)  评论(0编辑  收藏  举报