uniapp
onLoad() {
let _this = this
uni.getSystemInfo({
success: function (res) {
// console.log(res.windowWidth);
_this.wdwidth = res.windowWidth+"px"
// console.log(res.windowHeight);
_this.wdheight = res.windowHeight+"px"
}
});
},
:style="{'height':wdheight}"
可以这样在vue 中进行样式绑定