微擎使用腾讯地图拾取坐标

 

注意点:

  • 传过去的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>

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案