Fork me on GitHub

ExtJS 获取浏览器宽度

 

JS中代码:

Ext.onReady(function() {
  var width=window.screen.availWidth;
  var height=window.screen.availHeight;
  Ext.MessageBox.alert('Form','width'+width+'\nheight:'+height);
})

 

posted @ 2014-03-18 16:31  _落雨  阅读(732)  评论(0编辑  收藏  举报