src/main/resources/static/asserts/js/bootstrap-paginator.js
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* bootstrap-paginator.js v0.5
* --
* Copyright 2013 Yun Lai <lyonlai1984@gmail.com>
* --
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function ($) {
"use strict"; // jshint ;_;
/* Paginator PUBLIC CLASS DEFINITION
* ================================= */
/**
* Boostrap Paginator Constructor
*
* @param element element of the paginator
* @param options the options to config the paginator
*
* */
var BootstrapPaginator = function (element, options) {
this.init(element, options);
},
old = null;
BootstrapPaginator.prototype = {
/**
* Initialization function of the paginator, accepting an element and the options as parameters
*
* @param element element of the paginator
* @param options the options to config the paginator
*
* */
init: function (element, options) {
this.$element = $(element);
var version = (options && options.bootstrapMajorVersion) ? options.bootstrapMajorVersion : $.fn.bootstrapPaginator.defaults.bootstrapMajorVersion,
id = this.$element.attr("id");
if (version === 2 && !this.$element.is("div")) {
throw "in Bootstrap version 2 the pagination must be a div element. Or if you are using Bootstrap pagination 3. Please specify it in bootstrapMajorVersion in the option";
} else if (version > 2 && !this.$element.is("ul")) {
throw "in Bootstrap version 3 the pagination root item must be an ul element."
}
后面还有 601 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
