进入小程序初始化百度地图微信小程序API https://developers.weixin.qq.com/s/7WpRNmmA7bqN 代码片段链接 var bmap = require('../../utils/bmap-wx.min.js') Page({ onLoad() { var BMap = new bmap.BMapWX({ ak:"百度地图的ak" }); var fail = function (data) { BMap.regeocoding({ fail: fail, success: success, iconPath: '../../img/marker_red.png', iconTapPath: '../../img/marker_red.png' }); }; console.log(32232323) var success = function (data) { console.log(data) } BMap.regeocoding({ fail: fail, success: success, iconPath: '../../img/marker_red.png', iconTapPath: '../../img/marker_red.png' }); }, })
小程序在使用百度地图API的时候报错(安卓手机都会有)[图片]所有的安卓手机在调用引入的百度API接口 都会报这个错[图片]
2021-05-17