开发时,选用本地作为服务器,在手机上真机模拟是不是不能与后台传送数据啊?

小程序 文章 2022-03-07 10:00 225 0 全屏看文

AI助手支持GPT4.0

开发时,选用本地作为服务器,在手机上真机模拟是不是不能与后台传送数据啊?When developing, choose the local server as the server. Can the real machine simulation on the mobile phone not transmit data with the background?

开发时,选用本地作为服务器,在手机上真机模拟是不是不能与后台传送数据啊?

我在开发时选用本地作为自己的服务器(localhost),开发完一个功能后,用手机进行扫码调试时,无法传回后台数据,服务器开着呢,是我没有配置什么东西吗?

When I was developing, I chose the local as my own server (localhost). After developing a function, when I used the mobile phone for code scanning and debugging, I couldn't return the background data. The server was on. Didn't I configure anything?

回答:

蔡蔡蔡🇧🇬:httpTXT
VBit:

确实不通, 弄个内网穿透调试

深圳市春夏秋冬信息互联科技有限公司:

手机跟电脑连接同一wifi网络了吗?手机上没有localhost的,用电脑ip去访问

青寒:

用IP。

-EOF-

AI助手支持GPT4.0