<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="jquery-1.9.1.js"></script>
<script>
$(function(){
$("#showInfo").scroll(function(){
if($(this).height()+$(this).scrollTop()==$("#innerInfo").outerHeight(true)){
var str="<p>你好"+new Date()+"</p>"+"<p>你好"+new Date()+"</p>"+"<p>你好"+new Date()+"</p>"+"<p>你好"+new Date()+"</p>"+"<p>你好"+new Date()+"</p>";
$("#innerInfo").html( $("#innerInfo").html()+str );
}
});
});
</script>
<style>
*{
padding:0px;
margin:0px auto;
}
#showInfo{
width:200px;
height:200px;
overflow-y:scroll;
border:1px solid #F93;
}
</style>
</head>
<body>
<div id="showInfo">
<div id="innerInfo">
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
<p>你好,中国。</p>
</div>
</div>
</body>
</html>下拉刷新简单模拟
原文:http://blog.csdn.net/qfxsxhfy/article/details/45558147