xzybk

data:{tableHeight:""}

beforMount(){

let bodyHeight=document.documentElement,clienHeight||document.body.clientHeight;

}

mounted(){

const that=this;

window.onresize=()=>{

    return(()=>{

       window.bodyHeight=document.documentElement,clienHeight||document.body.clientHeight;

       that.tableHeight=window.bodyHeight-490;

    })

}

 

}

onresize函数只有当屏幕大小发生改变时才会触发;

分类:

技术点:

相关文章:

  • 2021-06-17
  • 2021-07-19
  • 2021-12-24
  • 2021-10-04
  • 2021-09-07
  • 2021-05-19
  • 2021-04-17
  • 2021-12-14
猜你喜欢
  • 2021-11-30
  • 2021-09-23
  • 2021-10-29
  • 2021-04-04
  • 2021-12-05
  • 2021-12-07
相关资源
相似解决方案