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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdba76-30a1c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdba76-30a1c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?