Home >Web Front-end >JS Tutorial >jquery method to quickly return to the top of the page_jquery

jquery method to quickly return to the top of the page_jquery

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

Copy code The code is as follows:

$(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