Config
Phone Gap / Cordova
<widget>:<preference name="Fullscreen" value="true" />
true false
7
index.js
, index.html
: cordova.js <script> .:<script type="text/javascript" src="js/index.js"></script> <script type="text/javascript" src="cordova.js"></script>
index.js
onDeviceReady: function() {:StatusBar.hide();
:
index.html:onDeviceReady: function() { this.receivedEvent('deviceready'); StatusBar.hide(); },
, Script index.html body
:<!DOCTYPE html> <html> <head> <title>Device Ready Example</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for device API libraries to load // function onLoad() { document.addEventListener("deviceready", onDeviceReady, false); } // device APIs are available // function onDeviceReady() { // Now safe to use device APIs StatusBar.hide(); } </script> </head> <body onload="onLoad()"> </body> </html>
:
https://cordova.apache.org/docs/en/4...viceready.html
https://cordova.apache.org/docs/en/l...gin-statusbar/