04 2018 档案
摘要:ui-router提供了一个transition转换对象,transition.to()代表已激活的状态,transition.from()代表过去处于激活的状态; 使用transition.params('to')代表已激活状态的路由参数详情; 使用transition.params('from'
阅读全文
摘要:$state.go("index.task.selection.log", {pageNo: "1"}, {reload: true}) //reload:true 跳转页面后强制刷新代码
阅读全文
摘要:.run(["$transitions",function ($transitions, $state) { $transitions.onSuccess({}, function (transition) { var currentRoute = transition.to().name; if (currentRoute.indexOf("from")...
阅读全文
摘要:ng-keyup="$ctrl.enterKeySearch($event)" self.enterKeySearch = function (e) { var keycode = window.event ? e.keyCode : e.which; if (keycode == 13) { ...
阅读全文