📌  相关文章
📜  在 vue 中跟踪窗口调整大小 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:29.810000             🧑  作者: Mango

代码示例1
created() {
  window.addEventListener("resize", this.myEventHandler);
},
destroyed() {
  window.removeEventListener("resize", this.myEventHandler);
},
methods: {
  myEventHandler(e) {
    // your code for handling resize...
  }
}