的实例
通过 jQuery 内置的 AJAX 功能,直接访问后台获得 JSON 格式的数据,然后通
过 jQuer 把数据绑定到事先设计好的 html 模板上,直接在页面上显示。
我们先来看一下 html 模板:
<tableid="datas"border="1"cellspacing="0"style="border-collapse:collapse">
<tr>
<th>
订单 ID</th>
<th>
客户 ID</th>
<th>
雇员 ID</th>
<th>
订购日期</th>
<th>
发货日期</th>
<th>
货主名称</th>
<th>
货主地址</th>
<th>
货主城市</th>
<th>
更多信息</th>
</tr>
<trid="template">
<tdid="OrderID">
</td>
<tdid="CustomerID">
</td>
<tdid="EmployeeID">
</td>
<tdid="OrderDate">
</td>
<tdid="ShippedDate">
</td>
<tdid="ShippedName">
</td>
<tdid="ShippedAddress">
</td>
<tdid="ShippedCity">
</td>
<tdid="more">
</td>
评论1