在项目中给高德地图的点标记添加点击事件时报错,详情看下方代码:1.创建点标记new AMap.Marker({icon: icon,//24px*26pxposition: vue.customer[i].position,title: vue.customer[i].name,zIndex: 200,clickable: true,map: map});2.给点标记添加点击事件var clickHandle = AMap.event.addListener(marker, 'click', function() {console.log("1111")});3.点击后报错marker is not defined
添加回答
举报
0/150
提交
取消