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