angularjs 中 $location.path传参

 

  

$location.path('url').search({newNo: $scope.nextBillNo,lastBill:$scope.lastBill,billNo:$scope.obj.billnum});
带参数跳转页面


新的页面可以接收到值
$scope.newNo=$routeParams.newNo;
$scope.lastBill=$routeParams.lastBill;
$scope.billNo=$routeParams.billNo;
posted @ 2017-04-19 14:34  liucong2016  阅读(5108)  评论(0编辑  收藏  举报