微信小程序如何获取屏幕的高度和宽度

let height = wx.getSystemInfoSync().windowHeight;
let width = wx.getSystemInfoSync().windowWidth;

  

posted @ 2021-12-09 09:28  辉仔的前端之路  阅读(351)  评论(0)    收藏  举报