使用angular进行网页跳转传参
-
app.controller('payController', function ($scope, $location, payService) { 注明$location
window.location.href = "paysuccess.html#?money=" + $scope.money; #?传参
$scope.getMoney=function(){
$scope.money = $location.search()["money"];
} 定义方法并在跳转的页面调用并通过{{money}}获取参数