SourceCode/jiouosdp/bstrap/expend/bootstrapexpend.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// 针对 bootstrap 2.0 的插件 修改
$(function () {
//modal
$.extend($.fn, {
showModalTip: function (content) {
if ($(".alert", this).length > 0) {
$(".alert", this).text(content);
return false;
}
var alertHtml = '<div class="alert alert-block alert-model"style="float:left;">' + content + '</div>';
$(".modal-footer", this).prepend($(alertHtml));
},
hideModalTip: function () {
$(".modal-footer .alert", this).remove();
},
modals: function (opt) {
if (opt.width) {
this.width(opt.width).css("margin-left", -opt.width / 2);
}
if (opt.closeEvent) {
$('.btncancel,.close', this).click(function() {
opt.closeEvent();
});
}
if (opt.brforeShow)
{
opt.brforeShow();
}
if (opt.primaryKey) {
//if ($("#followModalprimaryKey").length < 1) {
// this.append('<input type="hidden" value="' + opt.primaryKey + '" id="followModalprimaryKey" />');
//}
//else {
// $("#followModalprimaryKey").val(opt.primaryKey);
//}
var id = $(this).attr('id') + "_primaryKey";
var $key = $("#" + id);
if ($key.length < 1) {
this.append('<input type="hidden" value="' + opt.primaryKey + '" id="' + id + '" />');
} else {
$key.val(opt.primaryKey);
}
}
this.modal(opt);
},
getModalsKey: function (val) {
var id = $(this).attr('id') + "_primaryKey";
var $key = $("#"+id);
if (val != null) {
$key.val(val);
} else {
return $key.val();
}
}
});
后面还有 111 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。