需要带锚(链接)列的jquery数据表。

编程入门 行业动态 更新时间:2024-10-17 12:21:53
本文介绍了需要带锚(链接)列的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试图找到几个问题,但没有得到很大的帮助。

使用 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数据表。

本文发布于:2023-11-12 10:39:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581258.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据表   链接   需要带   jquery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!