且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery数据表将类添加到tr

更新时间:2023-11-03 16:41:40

$('tr' ,行)在行的上下文中查找tr元素,这意味着它将在行中搜索 行行 $ c>作为上下文参数提供。

$('tr', row) is looking for a tr element in the context of row, meaning it will search for a tr element inside the row provided as context parameter.

根据 API ,这应该有用

$(row).addClass("label-warning");