uni-app map组件关于marker标记点动态设置的问题

时间:2020-06-26 18:14:22   收藏:0   阅读:941

marker是Array类型,赋值的时候只能对整个数组进行更改赋值,不能只改变内部的对象,亲测Vue.$set()也不行

this.marker = [

   {

      latitude: 39.90,

      longitude: 116.39,

      iconPath: ‘../../../static/location.png‘

   }

]

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!