<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test1</title>
<script language="javascript" type="text/javascript" src="https://www.jb51.net/js/jquery-latest.pack.js"></script>
<script language="javascript" type="text/javascript" src="https://www.jb51.net/js/PageDate.js"></script>
</head>
<body>
<div>
<div>
<br />
<input type="button" value=" << " /><input type="button"
value=" < " /><input type="button" value=" > " /><input type="button"
value=" >> " />
<span></span>
<table cellspacing="0">
<tr>
<th>
订单ID</th>
<th>
客户ID</th>
<th>
雇员ID</th>
<th>
订购日期</th>
<th>
发货日期</th>
<th>
货主名称</th>
<th>
货主地址</th>
<th>
货主城市</th>
<th>
更多信息</th>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</div>
<div>
LOADING....
</div>
<input type="hidden" />
</div>
</body>
</html>
PageData.js就是包括上面AJAX请求和绑定数据代码的js,整个页面连form都不用,这样做有什么好处呢。再看下面一个模板
复制代码 代码如下: