需要带锚(链接)列的jquery数据表。 [英] Need jquery datatable with anchor(link) column.
问题描述
下面是我的HTML代码:
< div class = widget-content nopadding >
< 表 id = LoanInfoAsGuarantor class = table table-bordered data-表格 >
< thead >
< tr >
< th > 帐号否< / th >
< / tr >
< / thead >
< tbody > < / tbody >
< / table >
< / div >
javascript代码:
var dsLoans = [
[12344],
[12345],
];
$(文件).ready(function(){
$('#Loan')。DataTable(
{
bDestroy:true,
bJQueryUI:true,
aaData:dsLoans,
sPaginationType:full_numbers
});
});
需要输出应该是帐号的锚文本。
我的尝试:
i试图找到几个问题,但没有ge大帮助。
(文件).ready(function(){
('#Loan')。DataTable(
{
bDestroy:true,
bJQueryUI:true,
aaData:dsLoans,
sPaginationType:full_numbers
});
});
需要的输出应该带有帐号的锚文本。
我尝试了什么:
i试图找到几个问题,但没有得到很大的帮助。
< blockquote>使用 columns.render选项 [ ^ ],如中所示这个例子le [ ^ ]。
below is my html code :
<div class="widget-content nopadding">
<table id="LoanInfoAsGuarantor" class="table table-bordered data-table">
<thead>
<tr>
<th>Account No</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
javascript code :
var dsLoans = [
["12344"],
["12345"],
];
$(document).ready(function () {
$('#Loan').DataTable(
{
"bDestroy": true,
bJQueryUI: true,
"aaData": dsLoans,
"sPaginationType": "full_numbers"
});
});
need output should be with anchor text of account number.
What I have tried:
i have tried to find several questions but did not get big help.
解决方案 (document).ready(function () {
('#Loan').DataTable(
{
"bDestroy": true,
bJQueryUI: true,
"aaData": dsLoans,
"sPaginationType": "full_numbers"
});
});
need output should be with anchor text of account number.
What I have tried:
i have tried to find several questions but did not get big help.
Use the columns.render option[^], as demonstrated in this example[^].
这篇关于需要带锚(链接)列的jquery数据表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!