Javascript jQuery数据表FNDrender行更改

Javascript jQuery数据表FNDrender行更改,javascript,jquery,datatables,Javascript,Jquery,Datatables,我想在呈现表时向行中添加一些类,示例代码: $("#id").dataTable({ bProcessing: true, sAjaxSource: com.mycompany.path.api.message[component], aoColumns: [ {}, {}, { sWidth: "37px", fnRender: function(obj) { r

我想在呈现表时向行中添加一些类,示例代码:

$("#id").dataTable({
      bProcessing: true,
      sAjaxSource: com.mycompany.path.api.message[component],
      aoColumns: [
        {}, {},
        {
          sWidth: "37px",
          fnRender: function(obj) {
            return "<span>" + myData + "</span>";
          }
        }
      ]
});
$(“#id”).dataTable({
b处理:对,
sAjaxSource:com.mycompany.path.api.message[component],
AO列:[
{}, {},
{
sWidth:“37px”,
fnRender:函数(obj){
返回“+myData+”;
}
}
]
});
在本例中,我只能控制“td”标记,但我想根据循环中fnRender()中获得的数据为“tr”标记添加一些类。 如何处理数据表


谢谢,

看起来像1.7.3中提供的新功能: