<div>{{filtersText | filtersTextChange(that)}}</div>
filters: {
filtersTextChange: function (dataStr,that) {
//that是this 在data() return下面申明属性that:this
let arrayList = vm.arrayList;
let value = '没有这个城市 ';
for (let b of arrayList) {
if (b.code == dataStr) {
value = b.value;
break;
}
}
return value;
}