|
发表于 2016-9-29 11:37:50
|
显示全部楼层
StatusBar.backgroundColorByName
=================
On iOS 7, when you set StatusBar.statusBarOverlaysWebView to false, you can set the background color of the statusbar by color name.
StatusBar.backgroundColorByName("red");
Supported color names are:
black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown
Supported Platforms
-------------------
- iOS
- Android 5+
- Windows Phone 7
- Windows Phone 8
- Windows Phone 8.1
This installation method requires cordova 5.0+
cordova plugin add cordova-plugin-statusbar
上面那个是方法的限制,与机器有关,下面这个codova5.0+的意思是,你安装插件的环境必须是5.0+,如果codova版本低,status这个插件都装不上。你看看上面的限制,是不是不符合你的机型,才没有效果 |
|