我在开发时选用本地作为自己的服务器(localhost),开发完一个功能后,用手机进行扫码调试时,无法传回后台数据,服务器开着呢,是我没有配置什么东西吗?
开发时,选用本地作为服务器,在手机上真机模拟是不是不能与后台传送数据啊?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?
回答:
确实不通, 弄个内网穿透调试
手机跟电脑连接同一wifi网络了吗?手机上没有localhost的,用电脑ip去访问
用IP。