返回頂部為什么不管用
;$(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');
?? ??? ?})
2016-10-23
??$('html,body').animate({
?? ??? ??? ??? ?scrolltop:0
?? ??? ??? ??? ?},800)
scrollTop:0<!--沒有區(qū)分大小寫-->
2017-05-15
js是區(qū)分大小寫的