POST请求

header值设置: application/x-www-form-urlencoded

示例

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

results matching ""

    No results matching ""