检测并处理滚动到页面底部事件
http://dabbler.org/home/asdf/scrolling/test.html
有人看到这段代码有什么问题吗?
我不明白它有什么问题,但我的意图是当用户点击页面底部时,页面滚动到顶部。
谢谢。
http://dabbler.org/home/asdf/scrolling/test.html
Does anyone see anything wrong with this code?
I can't figure out what is wrong with it, but my intentions are such that when the user hits the bottom of the page, the page scrolls to the top.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您错过了右括号:
这是一个包含一些代码修复的工作版本: http://jsfiddle.net/maniator/ 8mg/
You missed a closing parenthesis:
Here is a working version with some code fixes: http://jsfiddle.net/maniator/8zhmg/
在你的最后一行,你
应该
不确定这是否会成为问题
On your last line you have
That should be
Not sure if that'll be the problem though
您的函数缺少结束标签! (最后!)
啊..@Neal 打败了我!
Your missing a closing tag on your function! (at the very end!)
Argh.. @Neal beat me to it!