1.data中定义

curHeight:0,//当前所需屏幕高度

//获取屏幕高度

    beforeMount(height) {

        var h = document.documentElement.clientHeight || document.body.clientHeight;

        this.curHeight =h - height; //减去页面上固定高度height

    },



Logo

前往低代码交流专区

更多推荐