mounted(){
this.initPlugin();
win.addEventListener('resize',this.resizePlayer);
win.addEventListener('scroll',this.resizePlayer);
this.$once('hook:beforeDestroy',() => {
this.freePluge()
win.removeEventListener('resize',this.resizePlayer)
win.removeEventListener('scroll',this.resizePlayer)
})
}
网友评论