百度地图api(微信小程序) TypeError: markers[j] is not a function

错误位置
这里写图片描述

“`
TypeError:markers[j] 不是一个函数

thirdScriptError
markers[j] is not a function;at pages/maps/maps page changeMarkerColor function
TypeError: markers[j] is not a function
at e.changeMarkerColor (http://127.0.0.1:57088/appservice/pages/maps/maps.js:75:17)
at e. (dev/WAService.js:18:4907”>http://127.0.0.1:57088/appservice/dev/WAService.js:18:4907)
at e.makertap (http://127.0.0.1:57088/appservice/pages/maps/maps.js:20:10)
at e. (dev/WAService.js:18:4907”>http://127.0.0.1:57088/appservice/dev/WAService.js:18:4907)
at e.a (dev/WAService.js:17:31002”>http://127.0.0.1:57088/appservice/dev/WAService.js:17:31002)
at z (dev/WAService.js:17:24941”>http://127.0.0.1:57088/appservice/dev/WAService.js:17:24941)
at Function.

解决方法
markers[j]=data[j];

这里写图片描述

阅读更多
版权声明:未经博主允许不得转载。 https://blog.csdn.net/qq_28934205/article/details/80347653
上一篇android 树形菜单列表
下一篇echarts 让数据千分位显示
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭