简体   繁体   English

如何删除分页中的三个点

[英]How to Remove Three Dots in Pagination

I'm new to this forum.我是这个论坛的新手。
I'm trying pagination for my own demo website.我正在为我自己的演示网站尝试分页。 When long pagination (...) three dot occurs and I don't want that.当长分页 (...) 出现三个点时,我不想要那样。 How can I remove that three dots?我怎样才能删除那三个点?

See the image: Image Link看图片:图片链接

And here my code:这里是我的代码:

 $(function() { var flexiblePagination = $('#contents').flexiblePagination({ itemsPerPage : 4, displayedPages: 5, itemSelector : 'div.content:visible', pagingControlsContainer : '#pagination', showingInfoSelector : '#showingInfo', btnFirstText: "First", btnLastText: "Last", btnNextText: "Next", btnPreviousText: "Prev", css: { btnNumberingClass: 'btn btn-sm btn-success', btnFirstClass: 'btn btn-sm btn-success', btnLastClass: 'btn btn-sm btn-success', btnNextClass: 'btn btn-sm btn-success', btnPreviousClass: 'btn btn-sm btn-success' } }); flexiblePagination.getController().onPageClick = function(pageNum, e){ console.log('You Clicked Page: '+pageNum) }; });

Increase your displayedPages: 5 to maximum number of your pages or you will need to edit js file of plug in itself.增加您的显示页面数:5 到您的最大页面数,否则您将需要编辑插件本身的 js 文件。

In your Flexible.Pagination.js file on line 324 is this line:在您的 Flexible.Pagination.js 文件中,第 324 行是这一行:

if ( starting != (numPages-1)){
            pagingControls += createButton('...', 'se-page-num'+this.instanceId+' '+this.css.btnActiveClass, true);
        }

try removing it, or remove just ... and see what happens.尝试删除它,或者只删除......然后看看会发生什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM