设置横竖屏切换可以使用setPreferredOrientation: https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-window-V5监听横竖屏切换可以使用窗口尺寸监听,监听宽高大小对比变化时横竖屏切换: https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-window-V5
设置横竖屏切换可以使用setPreferredOrientation: https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-window-V5
监听横竖屏切换可以使用窗口尺寸监听,监听宽高大小对比变化时横竖屏切换: https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-window-V5