AngularJs 刷新页面可采用下面的方式:首先先在控制器中注册$window,然后定义函数$scope.reloadRoute,在需要刷新页面的地方调用函数$scope.reloadRoute即可。
$scope.reloadRoute = function () {
    $window.location.reload();
};

$window.location.reload();

results matching ""

    No results matching ""