需要带锚(链接)列的jquery数据表。 [英] Need jquery datatable with anchor(link) column.

查看:45
本文介绍了需要带锚(链接)列的jquery数据表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆