我收到“没有工具提示功能”的错误,下面是我的代码,让我知道我是否遗漏了什么,
$('#table_id_'+type+'_wrapper .dataTables_scrollBody tbody tr').each(function() {
var sTitle;
var nTds = $('td', this);
var nTrs = $('tr', this);
var sBrowser = $(nTds[14]).text();
var sGrade = $(nTds[15]).text();
if ( sGrade == "W" )
sTitle = sBrowser+' will provide a first class (A) level of CSS support.';
else if ( sGrade == "D" )
sTitle = sBrowser+' will provide a core (C) level of CSS support.';
else
sTitle = sBrowser+' will provide an undefined level of CSS support.';
this.setAttribute( 'title', sTitle );
});
$(table.fnGetNodes()).tooltip( {
"delay": 0,
"track": true,
"fade": 250
});
数据表版本 - 1.10.12
答案 0 :(得分:-3)
让这个工作,我应该使用on(draw.dt)中的工具提示。