1 控制滚动条
 2 依赖    $location, $anchorScroll
 3 
 4  $scope.gotoTop = function () {
 5         $location.hash("top");
 6         $anchorScroll();
 7     };
 8     $scope.gotoBottom = function () {
 9         $location.hash("bottom");
10         $anchorScroll();
11 
12     };
13 注意 页面需要有相应的div    id为  top 和bottom

 

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-18
  • 2021-06-17
  • 2021-09-08
  • 2021-10-07
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案