使用angular進行網頁跳轉傳參 html
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}}獲取參數