<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 ??? ???/
是什么原因 ???
求大神