src/mvc/admin/Bootstrap.Admin/wwwroot/js/log.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function ($) {
var logPlugin = function (options) {
this.options = $.extend({}, logPlugin.settings, options);
var that = this;
for (var name in this.options.click) {
$(name).on('click', { handler: this.options.click[name] }, function (e) {
e.data.handler.call(that);
});
}
};
logPlugin.settings = {
url: 'api/Logs',
click: {
'#btnSubmit': function () {
this.log({ crud: '保存' });
},
'#btnSubmitRole': function () {
this.log({ crud: '分配角色' });
},
'#btnSubmitGroup': function () {
this.log({ crud: '分配部门' });
},
'#btnSubmitUser': function () {
this.log({ crud: '分配用户' });
},
'#btnSubmitMenu': function () {
this.log({ crud: '分配菜单' });
},
'#btnReset': function () {
this.log({ crud: '重置密码' });
},
'#btnSaveDisplayName': function () {
this.log({ crud: '设置显示名称' });
},
'#btnSavePassword': function () {
this.log({ crud: '修改密码' });
},
'#btnSaveApp': function () {
this.log({ crud: '设置默认应用' });
},
'#btnSaveCss': function () {
this.log({ crud: '设置个人样式' });
},
'a.btn.fileinput-upload-button': function () {
this.log({ crud: '设置头像' });
},
'button.kv-file-remove': function () {
this.log({ crud: '删除头像' });
},
'button[data-method="title"]': function () {
this.log({ crud: '保存网站标题' });
},
'button[data-method="footer"]': function () {
this.log({ crud: '保存网站页脚' });
},
'button[data-method="css"]': function () {
this.log({ crud: '设置网站样式' });
},
后面还有 39 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
