在angularjs可实现页面跳转的各种方式

来源:互联网 发布:适合英语听力的软件 编辑:程序博客网 时间:2024/06/05 05:17
法一、$location.path("/index/clientTakeGoods/clientTakeGoodsResult");(不支持火狐)
法二、$state.go('index.clientTakeGoods.clientTakeGoodsResult');(不支持谷歌)
法三、var url=$state.href('index.clientTakeGoods.clientTakeGoodsResult',{basicType:8});
   window.open(url,'_self');
法四、window.location="/index#/index/clientTakeGoods/clientTakeGoodsResult";

0 0