vue中this.$refs有值,但无法获取ref的值

vue报错Cannot read property ‘addEventListener’ of null"

vue中this.$refs有值,但无法获取ref的值
解决方法:
查看当前div或者父级div是否存在v-if,如果存在,请改为 v-show

相关文章:

  • 2021-05-17
  • 2021-07-31
  • 2021-08-28
  • 2021-08-14
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-12-23
  • 2021-07-11
  • 2022-12-23
相关资源
相似解决方案