js中怎么获取当前屏幕宽度?

js中怎么获取当前屏幕宽度?

1、js中获取当前屏幕宽度方法如下:网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetW
JavaScript110