加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angular js 页面跳转

发布时间:2020-12-17 10:04:56 所属栏目:安全 来源:网络整理
导读:超链接的方式: tda class="underline" target="_self" data-ui-sref="user_details({id:row.attrs.bj_id,ret:'whbi'})"{{row.attrs.name}}/a/td 2. 刷新页面的方式: var curWwwPath=window.document.location.href; var pos=curWwwPath.lastIndexOf("/"); v
超链接的方式:

<td><a class="underline" target="_self" data-ui-sref="user_details({id:row.attrs.bj_id,ret:'whbi'})">{{row.attrs.name}}</a></td>


2. 刷新页面的方式:
var curWwwPath=window.document.location.href;
var pos=curWwwPath.lastIndexOf("/");
var base= curWwwPath.substring(0,pos);
alert(base);

location.href = base + "/backplayroom_edit-" + type;


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; } }

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读