使一些列不合格?

puf*_*muf 2 jquery tablesorter

任何人都知道如何使这个Jquery插件的某些列无法解决?我似乎无法在文档中找到任何相关内容.

zdr*_*rsh 6

你错过了,这是代码:

$(document).ready(function() { 
    $("table").tablesorter({ 
        // pass the headers argument and assing a object 
        headers: { 
            // assign the secound column (we start counting zero) 
            1: { 
                // disable it by setting the property sorter to false 
                sorter: false 
            }, 
            // assign the third column (we start counting zero) 
            2: { 
                // disable it by setting the property sorter to false 
                sorter: false 
            } 
        } 
    }); 
});
Run Code Online (Sandbox Code Playgroud)

不合格的列


dSq*_*red 5

您需要使用headers选项使某些列无法排序.

$(document).ready(function() { 
    $("table").tablesorter({ 
        // pass the headers argument and assing a object 
        headers: { 
            // assign the secound column (we start counting zero) 
            1: { 
                // disable it by setting the property sorter to false 
                sorter: false 
            }, 
            // assign the third column (we start counting zero) 
            2: { 
                // disable it by setting the property sorter to false 
                sorter: false 
            } 
        } 
    }); 
});
Run Code Online (Sandbox Code Playgroud)

我希望这有帮助!