嗨我第一次使用cordova.我想创建一个应用程序来显示我的网站.
这是我的cordova命令来创建应用程序:
cordova create myapp
cd myapp
cordova platform add android --save
cordova plugin add cordova-plugin-inappbrowser --save
Run Code Online (Sandbox Code Playgroud)
和index.html:
<html>
<head>
<!--
Customize this policy to fit your own app's needs. For more guidance, see:
https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
Some notes:
* gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
* https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
* Disables use of inline scripts in order to mitigate risk of …Run Code Online (Sandbox Code Playgroud)