火狐怎么通过js获取屏幕的宽度获取屏幕宽度为:window.screen.width获取视口宽度(页面宽度):document.documentElement.clientWidthwindow.addEventListener('resize',2023-02-21JavaScript120