问题
During the development process of my phonegap/cordova application I used "phonegap serve". When I access my application through "phonegap serve" with the Phonegap app, the application is working as expected.
However when I perform a "phonegap run ios" on either the emulator or iPhone itself, the jQuery Mobile collapsable set is not seen on the second half of the screen.
Here is the latest committed code on the development branch: https://github.com/kacole2/jsmap1/tree/placesAPI
This is how the application looks when viewed with "phonegap serve"
This is how the application looks when viewed on the emulator or iOS device with "phonegap run ios"
Thank you in advance for any help
回答1:
To view the console output (javascript) for an app with a webview (like Phonegap), do one of the following:
Safari (iOS): On the device, disable private browsing and enable web inspector. In Safari enable development tools and you should see the device in the Developer menu. Select it and use Cmd+R to refresh and get the output from app startup.
Chrome (Android): Navigate to chrome://inspect/#devices and open the webview. Use ctrl+R to refresh and see the output from app startup. Also, make sure that debugging is enabled on the Android device.
来源:https://stackoverflow.com/questions/27004209/phonegap-application-isnt-showing-properly-on-ios-emulator-or-device