设置窗口大小
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
获取屏幕的宽度:
window.screen.availWidth
获取屏幕的高度:
window.screen.availHeight
当改变窗口大小时触发:window.onresize
window.onresize = function(){
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
}
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
获取屏幕的宽度:
window.screen.availWidth
获取屏幕的高度:
window.screen.availHeight
当改变窗口大小时触发:window.onresize
window.onresize = function(){
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
}
继续追寻。。。。。。