获取当前屏幕方向

getCurOrientation()

  • return int
1let ori = getCurOrientation();
2// 竖屏: 1  横屏: 2