调用jssdk返回不对
getAddress() { getJsSdkUiPackageAsync().then(res => { this.getLocation(res.Data) }) }, getLocation(params) { jweixin.config({ debug: true, "appId": params.AppId, "timestamp": params.Timestamp, "nonceStr": params.NonceStr, "signature": params.Signature, jsApiList: ["getLocation"] //根据需要看需要哪些SDK的功能 }); jweixin.ready(function() { jweixin.checkJsApi({ jsApiList: [ 'getLocation' ], success: function(res) { if (res.checkResult.getLocation == false) { alert('你的微信版本太低,不支持微信JS接口,请升级到最新的微信版本!'); return; } } }); jweixin.error(function(res) { console.log("接口调取失败") }); // 获取位置 jweixin.getLocation({ type: 'wgs84', success: function(res) { console.log('jssdk获取的位置:', res.longitude, res.latitude) _this.getList([res.longitude, res.latitude]) //通过经纬度去做需要的事情 }, cancel: function(res) { alert('您已禁止获取位置信息') } }); }); }, 返回是 Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction (<anonymous>:2:14)