Is this a valid jquery callback function call?

前端 未结 4 518
庸人自扰
庸人自扰 2021-01-16 17:34

I executing a function like this,



        
4条回答
  •  心在旅途
    2021-01-16 18:31

    Try this:

        $(document).ready(function() {
            var helper = function() {
                getEntities("Clients/GetClients", 0, formatClientsResult);
            };
            helper();
            var maxvalues = $("#HfId").val();
            $(".pager").pagination(maxvalues, {
                callback: helper,
                current_page: 0,
                items_per_page: 5,
                num_display_entries: 5,
                next_text: 'Next',
                prev_text: 'Prev',
                num_edge_entries: 1
            });
    

提交回复
热议问题