marker是Array類型,賦值的時候只能對整個數組進行更改賦值,不能只改變內部的對象,親測Vue.$set()也不行
this.marker = [
{
latitude: 39.90,
longitude: 116.39,
iconPath: '../../../static/location.png'
}
]
marker是Array類型,賦值的時候只能對整個數組進行更改賦值,不能只改變內部的對象,親測Vue.$set()也不行
this.marker = [
{
latitude: 39.90,
longitude: 116.39,
iconPath: '../../../static/location.png'
}
]
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。