Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在jQuery中设置表onload中基于行的位置_Jquery_Html Table - Fatal编程技术网

如何在jQuery中设置表onload中基于行的位置

如何在jQuery中设置表onload中基于行的位置,jquery,html-table,Jquery,Html Table,我已将表行位置保存在数据库中。现在我想根据它们的位置显示表行。请告诉我如何在jQuery中加载表数据 i、 e.我的代码: <table id="table"> <thead> <th></th> <th align="left">Title</th> <th align="left">Importance</th> <th align="left">Urgency</th>

我已将表行位置保存在数据库中。现在我想根据它们的位置显示表行。请告诉我如何在jQuery中加载表数据

i、 e.我的代码:

<table id="table">
<thead>
<th></th>
<th align="left">Title</th>
<th align="left">Importance</th>
<th align="left">Urgency</th>
<th></th>
</thead>
<tbody>
<%for(Todo todo:todoList){ %>
<tr>

<td><input type="checkbox" id="todocheck" value="<%=todo.getId()%>"/></td>
<td><a href="#" id="aid" style="padding-left:<%=todo.getCss()%>"><%=todo.getTitle() %></a></td>
<td><input type="text" id="importance" value="<%=todo.getImportance()%>" /> </td>
<td><input type="text" id="urgency" value="<%=todo.getUrgency()%>" /> </td>
<td><input type="hidden" name="parentId" id="parentId" value="<%=todo.getParent_tash_id()%>"/></td>

</tr>
<%} %>
</tbody>
</table>

标题
重要性
紧迫性

您的查询看起来如何?您可能可以使用和
orderbyrownr
ok解决问题,我正在尝试。我正在查询中添加ORDERBY子句