代码 定义1,
computed: {
siteJW: function() {
return function(index){
if (this.site) {
return “经度:” + this.site[index].lat + " 纬度 " + this.site[index].lng;
}
}
}
},
调用 {{siteJW(scope.$index)}}
computer计算属性如何 传入参数
最新推荐文章于 2023-02-17 18:39:52 发布
代码 定义1,
computed: {
siteJW: function() {
return function(index){
if (this.site) {
return “经度:” + this.site[index].lat + " 纬度 " + this.site[index].lng;
}
}
}
},
调用 {{siteJW(scope.$index)}}