如果要使用
$location,$stateParams,那么必須有相應形參
controller: function ($rootScope, $http, $scope, $state,$location,$stateParams) {
controller: function ($rootScope, $http, $scope, $state,$location,$stateParams) {
$location的參數,可用於登錄跳轉

