getLocation:fail 频繁调用会增加电量损耗

小程序 文章 2021-03-09 15:01 540 0 全屏看文

AI助手支持GPT4.0

getLocation:fail 频繁调用会增加电量损耗getLocation: Frequent calls to fail will increase battery consumption

getLocation:fail 频繁调用会增加电量损耗
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.getLocation 微信安卓客户端 8.0.1 2.14.1

let data = await wx.getLocation(

type: "gcj02"

)

Framework type problem type API / component name terminal type wechat version basic library version applet bug wx.getLocation Wechat Android client 8.0.1 2.14.1 let data = await wx.getLocation (type: "gcj02") code fragment

回答:

社区技术运营专员-Jahozheng:

你好,现在重试看看

微盟:

根据报错提示替换使用onLocationChange就可以了

木头:

wx.onLocationChange

-EOF-

AI助手支持GPT4.0