嗯嗯,是这样调用的wx.request({url: 'test.php', // 仅为示例,并非真实的接口地址data: {x: '',y: ''},header: {'content-type': 'application/json' // 默认值},success(res) {console.log(res.data)}})