大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...rientation的值即可: ```javascript window.screenOrientation = "sensor_landscape"; ``` 可配置的参数如下所示: |取值|屏幕方向| |:--:|:-----:| |landscape|横屏| |portrait |竖屏| |sensor_landscape或者sensorLandscape|横屏(双方向)| |sensor_portrait或者sensorPortrait|竖...
来源: Laya2.0_文档 发布时间: 20210715
...对横竖屏设置。 例如: ```javascript window.screenOrientation = "landscape"; // 设置屏幕为横屏 loadLib("libs/matter.js"); // 启动时加载“libs/matter.js”文件 ``` **注意:** 请不要在index.js文件里编写任何逻辑代码,如果编写可能会发生未知的错误...
来源: Laya2.0_文档 发布时间: 20210714
...项目内的game.json改为以下代码: ```json { "deviceOrientation": "landscape", "showStatusBar": false, "networkTimeout": { "request": 10000, "connectSocket": 10000, "uploadFile": 10000, "downloadFile": 10000 }, "subpackages": [ { "name": "b", "root": "js/subpackage/" } ] } ``` 规划和设...
来源: Laya2.0_文档 发布时间: 20210715
...项目内的game.json改为以下代码: ```json { "deviceOrientation": "landscape", "showStatusBar": false, "networkTimeout": { "request": 10000, "connectSocket": 10000, "uploadFile": 10000, "downloadFile": 10000 }, "subpackages": [ { "name": "b", "root": "js/b/" } ] } ``` 规划和设置完小...
来源: Laya2.0_文档 发布时间: 20210715
...项目内的game.json改为以下代码: ```json { "deviceOrientation": "landscape", "showStatusBar": false, "networkTimeout": { "request": 10000, "connectSocket": 10000, "uploadFile": 10000, "downloadFile": 10000 }, "subpackages": [ { "name": "subpackage", "root": "js/subpackage/" } ] } ``` 规...
来源: Laya2.0_文档 发布时间: 20210715