1.点击详情,并勾选项目设置中最后一行。
2.用小程序请求本地的后台服务接口
1 wx.request({ 2 url: \'http://localhost:8090/DemoProject/myTest.do\', 3 data:{}, 4 method:\'POST\', 5 header: { 6 \'content-type\': \'application/x-www-form-urlencoded\' 7 }, 8 success: function (res) { 9 console.log(res.data) 10 } 11 })