WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/plugins/jquery.accordion.js
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jQuery EasyUI 1.4.4
*
* Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function ($) {
function _1(_2, _3) {
var _4 = $.data(_2, "accordion");
var _5 = _4.options;
var _6 = _4.panels;
var cc = $(_2);
if (_3) {
$.extend(_5, { width: _3.width, height: _3.height });
}
cc._size(_5);
var _7 = 0;
var _8 = "auto";
var _9 = cc.find(">.panel>.accordion-header");
if (_9.length) {
_7 = $(_9[0]).css("height", "")._outerHeight();
}
if (!isNaN(parseInt(_5.height))) {
_8 = cc.height() - _7 * _9.length;
}
_a(true, _8 - _a(false) + 1);
function _a(_b, _c) {
var _d = 0;
for (var i = 0; i < _6.length; i++) {
var p = _6[i];
var h = p.panel("header")._outerHeight(_7);
if (p.panel("options").collapsible == _b) {
var _e = isNaN(_c) ? undefined : (_c + _7 * h.length);
p.panel("resize", { width: cc.width(), height: (_b ? _e : undefined) });
_d += p.panel("panel").outerHeight() - _7 * h.length;
}
}
return _d;
};
};
function _f(_10, _11, _12, all) {
var _13 = $.data(_10, "accordion").panels;
var pp = [];
for (var i = 0; i < _13.length; i++) {
var p = _13[i];
if (_11) {
if (p.panel("options")[_11] == _12) {
pp.push(p);
}
} else {
if (p[0] == $(_12)[0]) {
return i;
}
}
}
if (_11) {
return all ? pp : (pp.length ? pp[0] : null);
后面还有 265 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。