Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_init: function(options) {
var t = this;
// 写入分页条HTML
t._$paginator = $( Tmpl.render(options.template, {
currentPage: options.currentPage,
totalPages: options.totalPages,
pageItems: t._build(),
nextText: options.nextText,
prevText: options.prevText,
ellipsisText: options.ellipsisText
}) ).appendTo(options.$appendTo);
t._$paginator.on('click', function(e) {
e.preventDefault();
/**
* 点击分页条中的链接时触发
* @event click
* @param {Object} e 事件参数
* @param {Number} e.page 页码
* @for Paginator