2013年2月5日
摘要: jquery模仿微博向下滚动到页面底部时实时加载新内容原理很简单,当页面滚动到底部时,执行ajax方法从服武器获取更多json数据,并加载到页面上$(function () {var i = 0;$(window).bind(“scroll”, function (event) {//滚动条到网页头部的 高度,兼容ie,ff,chromevar top = document.documentElement.scrollTop + document.body.scrollTop; //??????//网页的高度var textheight = $(document).height();// 网页 阅读全文
posted @ 2013-02-05 20:59 Flx 阅读(305) 评论(0) 推荐(0) 编辑