var app = angular.module('myApp', []);
app.controller('moreCtrl', function($scope) {
$scope.myVar = true;
$scope.toggle = function() {
$scope.myVar = !$scope.myVar;
if(!$scope.myVar){
window.scrollTo(0,document.body.scrollHeight);
}
}
});
请帮忙看看这一段滚动到最底部执行不了