1. screen对象包含有关客户端显示屏幕的信息
    2. screen.availWidth
    3. screen.availHeight
    1. // 获取屏幕的宽度
    2. var screenWidth = window.screen.availWidth;
    3. console.log(screenWidth);
    4. // 获取屏幕的可视区
    5. var viewWidth = document.body.clientWidth;
    6. console.log(viewWidth);