js获取浏览器宽高 天黑黑TuT 2023-02-02 134 阅读1分钟 //获取窗口宽度 const width = getSystemInfoSync().windowWidth console.log(width) //获取窗口高度 const higth = getSystemInfoSync().windowHigth console.log(higth)