jQuery 无刷新分页
<html>
<head>
<script type="text/javascript" src="script/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="script/jquery-1.7.1.js"></script>
<script type="text/javascript" src="script/jquery.pagination.js"></script>
<script type="text/javascript">
$(function(){
//此demo通过Ajax加载分页元素
var initPagination = function(data) {
var feedback = "";
$.each(data.list, function(index, d) {
var str ="";
str+= "<dl class='result' style='display:none;'>";
str+="<dt><img src='http://headshot.user.qunar.com/headshotsByName/balijiang.png?l' alt='图片' width='70' height='70' /></dt>";
str+="<dd><a href='#' title='VYyu'>VYyu</a></dd>";
str+="<dd class='gray'>2009-09-26 </dd>";
str+="<dd>"+d+"</dd>";
str+="</dl>";
feedback += str;
});
相关新闻>>
- 发表评论
-
- 最新评论 更多>>