微擎使用腾讯地图拾取坐标
注意点:
- 传过去的backurl参数中,如果有 & 要将其替换成 %26,不然返回来的结果中不能识别调转链接
示例代码:
<div class="mui-input-row"> <label for="address">地址</label> <input type="text" class="mui-input-clear" id="address" onclick="getAddress()"> </div> <script> function getAddress() { var dealerid = $("input[name='dealerid']").val(); window.location.href = "https://apis.map.qq.com/tools/locpicker?search=1&type=0&backurl=跳转的链接&key=应用的KEY&referer=应用名称"; } </script>