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
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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。