mounted() {const that = this;window.onresize = function temp() {that.clientHeight = `${document.documentElement.clientHeight}`;console.log(that.clientHeight)};},
mounted() {
const that = this;
window.onresize = function temp() {that.clientHeight = `${document.documentElement.clientHeight}`;
console.log(that.clientHeight)
};
},
来源: http://www.bubuko.com/infodetail-2477209.html