mounted() {
let w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
let h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
this.$refs.subject.style.height = h + 'px';
this.$refs.rightAnswer.style.height = h + 'px';
this.$refs.sc.style.height = h + 'px';
}

vue里用let 相当于var

相关文章:

  • 2021-06-16
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-01-22
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2021-07-08
  • 2022-01-08
  • 2022-12-23
  • 2021-11-18
  • 2021-12-03
相关资源
相似解决方案