<script>
var a =''
var b=''
function check(){
$('body,html').animate({scrollTop:a+'px'},100);
}
function bbb(){
$('body,html').animate({scrollTop:b+'px'},100);
}
$(function(){
a = $('#text').offset().top;
b = $('#finally').offset().top;
console.log('1111111',a)
})
</script>