微信开放社区
服务商入驻
文档
登录
切换主页

暂无个人介绍

关注私信

正在关注

0

关注者

0

获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
文章 回答 1提问 收藏 关注问题
  • 到底是啥问题啊,我也是

    调用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)

    2023-04-10
关闭

选择需要上架的开放服务

  • 模板开发

    针对行业、场景的小程序代开发服务,帮助企业快速搭建小程序

    上架
  • 插件

    提供可被小程序直接使用、丰富小程序能力的功能模块

    上架
  • 小商店服务

    为小商店商家提供更多的能力,帮助商家经营好小商店

    上架
关闭

案例类型

  • 小程序
  • 插件
  • 关于腾讯
  • 运营规范
  • 文档中心
  • 辟谣中心
  • 客服中心
  • Copyright © 2012-2025 Tencent. All Rights Reserved.