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     })  

 

posted on 2018-03-23 10:48  风又奈何  阅读(19814)  评论(0编辑  收藏  举报