jQuery: Chaining multiple functions gives Uncaught Typeerror

后端 未结 3 1790
孤城傲影
孤城傲影 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:42

    jQuery(document).ready(function($){
        var pagerOptions = {
            //object definitions in here
        }; 
    
        $("#transaction").tablesorter({
            //function stuff in here    
        }).tablesorterPager(pagerOptions);
    });
    

    Use this method bottom of the page.

提交回复
热议问题