2016-03-14 61 views
0

我試圖凍結屏幕上方的thead表時,通過使用jQuery floatThead()函數滾動表。 我正在引用jquery的頁面,但它不工作時,我按f12鍵有一個X說「floatThead不是一個函數」。 這是jQuery代碼:

$(function() { 
    var $table = $('table.tableTop'); 
    $table.floatThead(); 
}); 

,這是HTML:

<table class="tableTop"> 
<thead> 
    <tr> 
     <th>..... 

這是錯誤: enter image description here

有人能幫助我嗎?

回答

0

floatThead()不是內置jQuery插件的一部分。這是在您的項目中包含jquery.floatThead表頭插件的時候。請檢查它是否已包含在here之內。