JQuery - 点击,滚动回到顶部 / 底部刷新回到顶部
if ($(document).scrollTop() != 0) {
//刷新之后,回到顶部
$('body,html').animate({ scrollTop: 0 }, 500);
}
posted on 2015-09-04 17:04 ultrastrong 阅读(539) 评论(0) 收藏 举报
只有金钱才会向穷人开放,而权利则永远不会。
if ($(document).scrollTop() != 0) {
//刷新之后,回到顶部
$('body,html').animate({ scrollTop: 0 }, 500);
}
posted on 2015-09-04 17:04 ultrastrong 阅读(539) 评论(0) 收藏 举报