一、添加插件 ionic plugin add cordova-plugin-screen-orientation 二、修改config.xml文件 <preference name="orientation" value="portrait" /> 三、index.html文件添加js函數設置 var onDeviceReady = function() { screenorientation.setOrientation(screenorientation.Orientation.LANDSCAPE); };html