收藏
回答

web-view 页面支持JSSDK的接口有哪些

API/组件名称 终端类型 微信版本 基础库版本
web-view 工具 6.6.2 1.7.2




<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.0.js" charset="utf-8"></script>
</head>
<body>
     <h1 >欢迎<%=Session["id"] %>来到小程序</h1>
  ee:<input type="text"  id ="ee" value="<%=Session["timestamp"] %>" /> 
  cc:<input type="text"  id="cc" value="<%=Session["nonceStr"] %>"/>
   dd:<input type="text"  id="dd" value="<%=Session["signature"] %>"/>
    <button type="button"  id="btn">上传图片</button>
     <script type="text/javascript">
         //alert("~~~~~~~~~");
         wx.config({
             debug: true,
             appId:'wxb183ce900a263d65',
             timestamp: '<%=Session["timestamp"] %>',
             nonceStr: '<%=Session["nonceStr"] %>',
             signature: '<%=Session["signature"] %>',
             jsApiList: ['checkJsApi', 'openLocation','getLocation']
         })
        ////alert("~~~~签名通过的~~~~~");
         wx.ready(function () {
             wx.openLocation({
                 latitude: 30.2901,
                 longitude: 120.0024,
             })
           
         });





这样的代码    wx.openLocation  错误提示  是 允许离线定义  或者  url domain   ??? ???/

是什么原因      ??????

求大神


回答关注问题邀请回答
收藏
登录 后发表内容