获取页面宽度

获取页面宽度和高度

let screenWidth = document.body.clientWidth;
let screenHeight = document.documentElement.clientHeight;
原文地址:https://www.cnblogs.com/leoych/p/15459970.html