日期:2014-05-17  浏览次数:20415 次

jquery 从数据库读取多条数据,循环插入到属性相同的table中
  从数据库读取多条数据,循环插入到属性相同的table中(table就有一个),当有多条数据插入时就会自动添加多个table。

------解决方案--------------------
<table border="0" cellspacing="0" cellpadding="0" width="100%">
      <asp:Repeater ID="Repeater1" runat="server">
                 <ItemTemplate>
                 <tr>
             <td></td>
             <td></td>
             <td></td>
             </tr>
                </ItemTemplate>
         </asp:Repeater>
    </table>
------解决方案--------------------
$("<table><tr><td>..</td></tr>...</table>").appendTo("#div");
------解决方案--------------------
 $.ajax({
                    url: "",
                    data: { 参数: },
                    cache: false,
                    dataType: "json",
                    success: function (resulturl) {
$(resulturl).appendTo("#div1");
}});