话不多说直接上代码
销毁无效的示例
this.canvans.removeEventListener('mousemove',this.handleSvgMove.bind(this))
销毁成功的示例
constructor(id){
this.handleSvgMove=this.handleSvgMove.bind(this)
}
//然后就可以直接销毁了
this.canvans.removeEventListener('mousemove',this.handleSvgMove))