1、发送json请求体数据wx.request({ url: http://127.0.0.1:8080/send-code, method: POST, data: { email: email }, success: function(res) { console.log(发送验证码请求成功:, res); }, fail: function(err) { console.error(发送验证码请求失败:, err); wx.showToast({ title: 发送验证码失败请稍后重试, icon: none }); } });2、请求查询参数wx.request({ url: http://127.0.0.1:8080/send-code?email email, method: POST, success: function(res) { console.log(发送验证码请求成功:, res); }, fail: function(err) { console.error(发送验证码请求失败:, err); wx.showToast({ title: 发送验证码失败请稍后重试, icon: none }); } });