点击返回顶部 function goTop(acceleration, time) { acceleration = acceleration || 0.1; time = time || 16; var x1 = 0; var y1 = 0; var x2 = 0; var y2 = 0; var x3 = 0; var y3 = 0; if (document.documentElement) { x1 = document.documentElement.scrollLeft || 0;…
在chrome浏览器下页面加载: var top = $("body").scrollTop() ; console.log(top) // 事件监听无效 var top = $("html").scrollTop(); console.log(top) // 事件监听无效 var top = $(document).scrollTop(); console.log(to…