因为750rpx就是手机的宽度了,所以手机屏幕宽度就不说了
// 获取屏幕高度用res.screenHeight
let _this = this;
uni.getSystemInfo({ //异步获取。
success(res) {
_this.phoneHeight = res.windowHeight;//窗口高度
}
});
因为750rpx就是手机的宽度了,所以手机屏幕宽度就不说了
// 获取屏幕高度用res.screenHeight
let _this = this;
uni.getSystemInfo({ //异步获取。
success(res) {
_this.phoneHeight = res.windowHeight;//窗口高度
}
});