在項目中給高德地圖的點標記添加點擊事件時報錯,詳情看下方代碼: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
調用高德地圖js的api,給點標記添加click事件
湖上湖
2018-08-05 13:35:24
