vue页面离开后执行函数

  destroyed: function () {            console.log("我已经离开了!");     this.stopTimer();  },this 说明:destroyed是与methods、mounted同层级的spa mounted(){ this.startTimer(); }, //离开当前页面后执行 destroyed: function ()
相关文章
相关标签/搜索