ember.js:使用笔记10 常用方法

  • init: controller中初始化方法,                               //注意该方法是在其他方法之前,所以取不出this,model等值;
  • 跳转:this.transitionToRoute(routename,param);  //形式对应如:this.resource('question', {path: 'test/:fullname/:sequence/:guid'});
原文地址:https://www.cnblogs.com/jinkspeng/p/4071361.html