src/Hx.IdentityServer/wwwroot/js/hx.tablepage.js
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
; if (!jQuery) { throw new Error("hx.tablepage requires jQuery"); }
; (function ($, window) {
var hxTable = function (ele, opt) {
this.$element = ele;
this.defaults = {
title: null,
body: null,
datas: null,
page: {
currentPage: 1,
pageSize: 10,
totalPage: 4,
totalRecord: 35
},
firstPage: function () {
alert('firstPage');
},
previousPage: function () {
alert('previousPage');
},
nextPage: function () {
alert('nextPage');
},
endPage: function () {
alert('endPage');
},
setPageSize: function (pageSize) {
alert('setPageSize:' + pageSize);
},
setCurrentPage: function (currentPage) {
alert('setCurrentPage:' + currentPage);
},
editRecord: function (id) {
alert('editRecord:' + id);
},
deleteRecord: function (id) {
alert('deleteRecord:' + id);
},
insertRecord: function () {
alert('insertRecord');
},
deleteBatch: function (values) {
alert('deleteBatch:' + values);
}
};
this.options = $.extend({}, this.defaults, opt);
}
hxTable.prototype = {
init: function () {
}
}
$.fn.yzzTbalePager = function (options) {
var defaults = {
thead: ['<input type="checkbox" class="yzz-checkbox">', '列一', '列二', '操作'], //要使全选事件有效复选框checkbox的类名要求一致
datas: [ //启动编辑点击事件必须带class:yzz-edit、启动删除点击事件必须带class:yzz-delete
['<input type="checkbox" class="yzz-checkbox" value="0dfg">', '列一', '列二', '<a href="javascript:void(0);" class="yzz-edit">编辑</a><a href="javascript:void(0);" class="yzz-delete">删除</a>'],
['<input type="checkbox" class="yzz-checkbox" value="1ecfe">', '列一', '列二', '<a href="javascript:void(0);" class="yzz-edit">编辑</a><a href="javascript:void(0);" class="yzz-delete">删除</a>'],
后面还有 266 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
