1.点击详情,并勾选项目设置中最后一行。

在微信小程序中调用本地接口

在微信小程序中调用本地接口

 

2.用小程序请求本地的后台服务接口

wx.request({  
      url: 'http://localhost:8090/DemoProject/myTest.do',  
      data:{},  
      method:'POST',  
      header: {  
        'content-type': 'application/x-www-form-urlencoded'  
      },  
      success: function (res) {  
        console.log(res.data)  
      }  
    })

 

相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2022-02-06
  • 2021-12-30
  • 2021-05-02
  • 2021-11-20
  • 2022-02-13
猜你喜欢
  • 2021-09-17
  • 2021-11-29
  • 2021-09-28
  • 2021-12-05
  • 2021-12-25
相关资源
相似解决方案