$(function() {var back = $(".back-to-top");
//设置按钮“返回顶部”$(window).on('scroll', function() {if ($(window).scrollTop() > $(window).height())back.fadeIn();elseback.fadeOut();})
$(window).trigger('scroll');
})