1) 如何在黑莓网络中检索方向改变事件?
2)我们可以使用 JavaScript 在运行时以编程方式更改方向吗?
最佳答案
这里有一个知识库用于检索方向更改事件: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Detect-screen-orientation-changes-using-JavaScript/ta-p/445755
或者,您可以监听 window.onresize。
此时您无法以编程方式更改方向,但您可以在编译时通过 rim:orientation 属性: https://developer.blackberry.com/html5/documentation/rim_orientation_element_1594186_11.html
关于javascript - 在黑莓网络中检索方向改变事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11896070/