Home  >  Article  >  Web Front-end  >  jquery 快速回到页首的方法_jquery

jquery 快速回到页首的方法_jquery

WBOY
WBOYOriginal
2016-05-16 17:10:231459browse

复制代码 代码如下:

$(function() {
$("#back_top").click(function(){
$('body,html').animate({scrollTop:0},1);
return false;
});

)};
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn