wx.openAddress提示不可用
发布于 6 年前 作者 yang98 1516 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

  wx.config({

    debug: true, 

    appId: “${config.appid}”,  

    timestamp: ${config.currenttimestamp},  

    nonceStr: “${config.nonceStr}”, 

    signature: “${config.signatureStr}”, 

    jsApiList: [ ‘checkJsApi’,‘openAddress’,‘chooseWXPay’]  

});   

wx.ready(function () {

         wx.checkJsApi({

             jsApiList: [

                 ‘openAddress’,

             ],

             success: function (res) {

                 alert(JSON.stringify(res));

             }

         });

  });

  • 复现路径
  • 提供一个最简复现 Demo
回到顶部