下面是我的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试图找到几个问题,但没有得到很大的帮助。
使用 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数据表。
发布评论