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刪除。