如何解决意外的字符串连接首选模板结果[i] [0] .lat +','+结果[i] [0] .lng
怎么了?那我该怎么办??
HereMap.vue
let waypoints = []
this.map.removeObjects(this.map.getobjects())
this.directions = []
waypoints = [this.geocode(start),this.geocode(finish)]
Promise.all(waypoints).then(result => {
const markers = []
for (let i = 0; i < result.length; ++i) {
params[`waypoint,${i}`] = `${result[i][0].lat },${ result[i][0].lng}`
markers.push(new H.map.Marker(result[i][0]))
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。