< script type = "text/javascript" >
$(function() {
var oAllLinksTable = $("#mydatatable").dataTable({
"bProcessing": false,
"bServerSide": true,
"sAjaxSource": "/myreports/data?Id=" + id,
"sPaginationType": "full_numbers",
"bDestroy": true
});
});
< /script>
我的表如下如何使用jquery在jquery数据表中插入序列号?
<table id="headertagstable" style="width: 100%;" class="grid-table04 margin-b-20">
<thead>
<tr>
<th width="10%" align="left" valign="middle">
SI No
</th>
<th width="40%" align="left" class="black-link-first" valign="middle">
Name
</th>
<th width="25%" align="left" valign="middle">
Date
</th>
<th width="25%" align="left" valign="middle">
Place
</th>
</tr>
</thead>
</table>
所有作品,除了序号罚款。我如何使用jQuery添加序列号?
而不是将更多的代码提供描述以及代码来理解问题 – 2012-02-06 05:43:58
在我如何插入序列号使用jquery我尝试实现“aoColumnDefs”:[{“bSortable”:true,“bSearchable”:true, “fnRender”:function(oObj){//这里如何生成序列号?并使用返回的序列号}“aTargets”:[0] } – 2012-02-06 05:47:27