Using app packaged with hbuilder to test that ajax data cannot be sent on a mobile phone.

I"d like to ask the bosses that if you want to use hbuilder to develop hybrid app, that has written ajax requests, you can request the obtained data in the local server environment. But after packaging, if you test it on the phone, you can"t get the data because it"s not a server environment. How can you solve this problem? Is it embedding a server environment on app?


just change url to server ip. Do not use localhost


first put the phone and the service in the same network segment

.
Menu