在每个路由跳转前,执行destroy中的方法 destroy中放着上个视图中需要解绑的数据和事件 封装功能时,注册了事件,需要暴露一个接口,用来销毁事件。注意namespace的使用 视图上定义destroy方法,调用功能destroy