js获取浏览器宽高

134 阅读1分钟

//获取窗口宽度 const width = getSystemInfoSync().windowWidth console.log(width) //获取窗口高度 const higth = getSystemInfoSync().windowHigth console.log(higth)