控制滚动条
依赖 $location, $anchorScroll $scope.gotoTop = function () {
$location.hash("top");
$anchorScroll();
};
$scope.gotoBottom = function () {
$location.hash("bottom");
$anchorScroll(); };
注意 页面需要有相应的div id为 top 和bottom
控制滚动条
依赖 $location, $anchorScroll $scope.gotoTop = function () {
$location.hash("top");
$anchorScroll();
};
$scope.gotoBottom = function () {
$location.hash("bottom");
$anchorScroll(); };
注意 页面需要有相应的div id为 top 和bottom