前提:html\body高度都超过屏幕高,普通的长页面。

$("body").scrollTop() chrome浏览器中一直是0;

$("html,body").scrollTop() sume中一直是0;

最稳妥方法:

$(document).scrollTop()。