当微信开发工具报errMsg: "chooseLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json" 这个错时,需在小程序app.json文件中"requiredPrivateInfos"增加"chooseLocation"配置
"requiredPrivateInfos": [
"chooseLocation", "getLocation"
],