tagTacticsFilter(tacticsTag
) {
let data
= []
let _tacticsTagList
= this.tacticsTagList
let attrList
= tacticsTag
.split(',')
attrList
.forEach(function(item
) {
_tacticsTagList
.forEach(function(c
) {
if (item
=== c
.dataSubtype
) {
data
.push(c
.dataSubtypeName
)
}
})
})
return data
},
通过过滤条件返回新的data数组
转载请注明原文地址:https://tech.qufami.com/read-11292.html