需要解决的按钮
<view v-if="!iskeyboard" >按钮</view>
控制代码,页面加载是放入
let that = this;
var win_h = document.documentElement.clientHeight || document.body.clientHeight;
window.addEventListener("resize", function() {
let win_gb = document.documentElement.clientHeight || document.body.clientHeight;
if (win_gb < win_h) {
that.iskeyboard = true;
} else {
that.iskeyboard = false;
}
});
网友评论