帮助了 AmazingCounters.com 位小伙伴

uniapp 获取当前屏幕的高度

 

 

onLoad() {
            uni.getSystemInfo({
                success: (res)=> {
                    let height=res.windowHeight-uni.upx2px(100) //获取系统信息,可使用窗口的高度
                    this.swiperheight=height;
                }
            });
        },

 

posted on 2020-10-14 11:18  云的旋律  阅读(5978)  评论(0编辑  收藏  举报

导航

前端攻城狮分享群