Recently I have been learning Android development. And do a few small software, I will be in the form of Baidu Network and two-dimensional code to share out! The source will be shared on GitHub. I'm still mainly talking about the JSONP agreement. Many beginners may encounter many of the same problems as I do. I couldn't get the data on the server at first. Both local and cross-domain requests cannot be implemented. Then I found the problem. We need to create a new XML folder and then add Cordova.xml to the XML folder. Then add <access origin= "http://59.46.168.82*"/>,origin= "inside is the URL that you need to access the URL of the server." Others believe that we all know, is PhoneGap website or Chinese online can search cross-domain requests, mainly is the JSONP protocol, in fact, is the Ajax cross-domain request.
PHONEGAP Mobile Development JSONP Protocol