var map = new BMap.Map('map');
var poi = new BMap.Point(112.53, 37.87);
map.enableScrollWheelZoom();
map.centerAndZoom(poi, 12);
map.addEventListener("mousemove",function(e){
console.log(e.point)
});
map.addEventListener("click",function(e){
console.log(e.point)
});
给地图添加点击或者移动事件,获取e中的point
point中就是坐标值
取出值自己显示出来就行了
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/16403.html