jQuery: Chaining multiple functions gives Uncaught Typeerror

后端 未结 3 1826
孤城傲影
孤城傲影 2021-01-23 15:26

I\'m attempting to chain multiple function calls in my script, but I keep getting Uncaught TypeError: $(...).tablesorter(...).tablesorterPager is not a function whe

3条回答
  •  误落风尘
    2021-01-23 15:43

    I think this is causing the error .tablesorterPager(pagerOptions);

    Try with this:

    function InitializeTableSorter() {
       var pagerOptions = {
           //object definitions in here
       }; 
    
       $("#transaction").tablesorter(pagerOptions);
    }
    

提交回复
热议问题