返回顶部为什么不管用
;$(function()
{
var backbutton = $('.back-top-up');
backbutton.on('click',function()
{
$('html,body').animate({
scrolltop:0
},800)
})
$(window).on('scroll',function(){
if ($(window).scrolltop()>$(window).height())
backbutton.fadeIn();
else
backbutton.fadeOut();
})
$(window).trigger('scroll');
})