默认窗口滑动和返回顶部都不能正常运行,控制台也没报错,求解
$(window).on('scroll',function() {
if($(window).scrollTop() > $(window).height())
{backButton.fadeIn;}
else
backButton.fadeOut;
})
$(window).trigger('scroll');
$(window).on('scroll',function() {
if($(window).scrollTop() > $(window).height())
{backButton.fadeIn;}
else
backButton.fadeOut;
})
$(window).trigger('scroll');
2018-06-27
举报