[uniapp WeChat-Applet] Höhe des sichtbaren Bereichs

onLoad(option) {
    
    
		let that = this;
		uni.getSystemInfo({
    
    
			success: function (res) {
    
    
				that.height = (res.windowHeight - 150) * 2; // 单位 px
			}
		});
	},

Guess you like

Origin blog.csdn.net/AAAXiaoApple/article/details/132742395