angular js 页面跳转
超链接的方式:
<td><a class="underline" target="_self" data-ui-sref="user_details({id:row.attrs.bj_id,ret:'whbi'})">{{row.attrs.name}}</a></td>
2. 刷新页面的方式:
3:不刷新页面 : $scope.transferFail = function(id) { $state.go("msg_send",{ userId : id }); }; $stateProvider.state("home",{ url : "/home",controller : "HomePageCtl",templateUrl : "home.html" }).state("withdraw",{ url : "/withdraw",controller : "WithdrawCtl",templateUrl : "withdraw.html" }) 接收参数 :$scope.initPage = function() { if ($state.params.userId) { $scope.msg = { type : "5",user_id : $state.params.userId } $scope.params = $state.params; } } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |