禁止手机app横竖屏幕转换,只需在根目录下的 config.xml 中添加如下内容
config.xml
<preference name="orientation" value="portrait" />
可使用的值有:default 默认转屏, landscape横向, portait 纵向