如何点击按钮上传当前的位置信息到指定的网页里?

发布于 6 年前作者 pcai12165 次浏览最后编辑 6 年前来自 issues

目前已经可以获取当前位置了   但是怎么上传至指定的网页呢?

1 回复
litan
litan1 楼4 年前

你要上传到哪个网页呀,

如果要上传到服务器,要请求接口

wx.request({
  url: 'https://qq.com/index.php', //仅为示例,并非真实的接口地址
  data: {
    x: '',
    y: ''
  },
  header: {
    'content-type': 'application/json' // 默认值
  },
  success (res) {
    console.log(res.data)
  }})