console.log(screen.availWidth,screen.availHeight);//获取屏幕的宽和高(除 Windows 任务栏之外))console.log(screen.width,screen.height);//获取屏幕的宽和高(包含Windows 任务篮))console.log(window.innerWidth,window.innerHeight);//浏览器窗口的宽高