uni-app map组件关于marker标记点动态设置的问题
时间:2020-06-26 19:03:22
收藏:0
阅读:2027
marker是Array类型,赋值的时候只能对整个数组进行更改赋值,不能只改变内部的对象,亲测Vue.$set()也不行
this.marker = [
{
latitude: 39.90,
longitude: 116.39,
iconPath: ‘../../../static/location.png‘
}
]
原文:https://www.cnblogs.com/swordLaughsHeaven/p/13195601.html
评论(0)