我想检查页面是否在加载完成后已滚动,我正在使用以下代码:
$(document).ready(function(){
alert($(window).scrollTop());
});
在Firefox中它运行良好,但在Chrome中总是返回0
。这是为什么?