版权声明: https://blog.csdn.net/jiangxuexuanshuang/article/details/88687147
说明:屏幕限制为竖屏访问
1、安装
cordova plugin add cordova-plugin-screen-orientation
2、使用
在config.xml中添加配置,即可完成强制竖屏的功能,不会随屏幕旋转
<preference name="orientation" value="portrait" />