jQuery代码片段
A. 效果类:
回到顶部
$('body,html').animate({scrollTop: 0}, 1000);
B. 操作类:
阻止默认事件
e.preventDefault();