a.html
{{pt_type}}
<a ng-href="addnews.html#/?pt_type=1">新增</a></span>
b.html
{{pt_type}}
<span> <a ng-href="background.html#/?pt_type=1">查询</a></span>
js:
$scope.pt_type = $location.search().pt_type;
a.html
{{pt_type}}
<a ng-href="addnews.html#/?pt_type=1">新增</a></span>
b.html
{{pt_type}}
<span> <a ng-href="background.html#/?pt_type=1">查询</a></span>
js:
$scope.pt_type = $location.search().pt_type;
转载于:https://my.oschina.net/u/2349117/blog/488226