extjs中屏幕旋转事件怎么用

从API上面看到的orientationchange和onresize。但是没有具体的方法,求大神出来讲一讲

http://blog.csdn.net/jiangxinyu/article/details/8600407

其实就是和普通事件一样添加就行了,
http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.dom.Element-method-on

 Ext.get(window).on('orientationchange',function(e){
alert(window.orientation)

});

window.orientation属性值看这个:http://www.williammalone.com/articles/html5-javascript-ios-orientation/

resize事件的添加同理。。

Ext.get(window).on('orientationchange',function(e){
alert(window.orientation)

});