CaiWu/Scripts/Easyui/plugins/jquery.accordion.js

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * jQuery EasyUI 1.3.5
 * 
 * Copyright (c) 2009-2013 www.jeasyui.com. All rights reserved.
 *
 * Licensed under the GPL or commercial licenses
 * To use it on other terms please contact us: info@jeasyui.com
 * http://www.gnu.org/licenses/gpl.txt
 * http://www.jeasyui.com/license_commercial.php
 *
 */
(function($){
function _1(_2){
var _3=$.data(_2,"accordion");
var _4=_3.options;
var _5=_3.panels;
var cc=$(_2);
_4.fit?$.extend(_4,cc._fit()):cc._fit(false);
if(!isNaN(_4.width)){
cc._outerWidth(_4.width);
}else{
cc.css("width","");
}
var _6=0;
var _7="auto";
var _8=cc.find(">div.panel>div.accordion-header");
if(_8.length){
_6=$(_8[0]).css("height","")._outerHeight();
}
if(!isNaN(_4.height)){
cc._outerHeight(_4.height);
_7=cc.height()-_6*_8.length;
}else{
cc.css("height","");
}
_9(true,_7-_9(false)+1);
function _9(_a,_b){
var _c=0;
for(var i=0;i<_5.length;i++){
var p=_5[i];
var h=p.panel("header")._outerHeight(_6);
if(p.panel("options").collapsible==_a){
var _d=isNaN(_b)?undefined:(_b+_6*h.length);
p.panel("resize",{width:cc.width(),height:(_a?_d:undefined)});
_c+=p.panel("panel").outerHeight()-_6;
}
}
return _c;
};
};
function _e(_f,_10,_11,all){
var _12=$.data(_f,"accordion").panels;
var pp=[];
for(var i=0;i<_12.length;i++){
var p=_12[i];
if(_10){
if(p.panel("options")[_10]==_11){
pp.push(p);
}
}else{
后面还有 262 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。