jq 滚动到底事件
2015-12-28 10:35
169 查看
$(window).scroll(function () {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight == scrollHeight) {
// 可加载更多
}
});
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight == scrollHeight) {
// 可加载更多
}
});
相关文章推荐
- Java线程篇(八):锁对象Lock-同步问题完美解决
- C++ STL priority_queue
- 获取日历对象,制作时钟
- MAC中设置android adb环境变量
- [leetcode] 155. Min Stack 解题报告
- 微信公众号 发送图文消息
- C语言---类型转换
- 如何利用esxtop命令杀掉无响应卡死的虚拟机
- 获取视频文件第一帧图片
- matplotlib 绘图总结
- Duplicate files copied in APK META-INF/maven/com.squareup.okio/okio/pom.properties
- 几种常用加密算法比较
- 怎么在eclipse中安装properties插件
- Core Animation 简明系列教程
- Exhange上添加IMAP4
- 把vim配置成编程利器
- 判断当前应用程序处于前台还是后台
- Java线程篇(七):Callable和Future
- linux 乱码 GBK转UTF8
- Hdu 2087