在JS中window对象和screen对象中都有表示显示屏的宽度和高度的属性:window对象window.innerWidth //表示宽度window.innerHeight //表示高度scre.
確定! 回上一頁