marriage/control/easy_ui/plugins/jquery.combo.js

(开头部分) 10KB

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

/**
 * jQuery EasyUI 1.3.3
 * 
 * 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,_3){
var _4=$.data(_2,"combo").options;
var _5=$.data(_2,"combo").combo;
var _6=$.data(_2,"combo").panel;
if(_3){
_4.width=_3;
}
if(isNaN(_4.width)){
var c=$(_2).clone();
c.css("visibility","hidden");
c.appendTo("body");
_4.width=c.outerWidth();
c.remove();
}
_5.appendTo("body");
var _7=_5.find("input.combo-text");
var _8=_5.find(".combo-arrow");
var _9=_4.hasDownArrow?_8._outerWidth():0;
_5._outerWidth(_4.width)._outerHeight(_4.height);
_7._outerWidth(_5.width()-_9);
_7.css({height:_5.height()+"px",lineHeight:_5.height()+"px"});
_8._outerHeight(_5.height());
_6.panel("resize",{width:(_4.panelWidth?_4.panelWidth:_5.outerWidth()),height:_4.panelHeight});
_5.insertAfter(_2);
};
function _a(_b){
$(_b).addClass("combo-f").hide();
var _c=$("<span class=\"combo\"></span>").insertAfter(_b);
var _d=$("<input type=\"text\" class=\"combo-text\">").appendTo(_c);
$("<span><span class=\"combo-arrow\"></span></span>").appendTo(_c);
$("<input type=\"hidden\" class=\"combo-value\">").appendTo(_c);
var _e=$("<div class=\"combo-panel\"></div>").appendTo("body");
_e.panel({doSize:false,closed:true,cls:"combo-p",style:{position:"absolute",zIndex:10},onOpen:function(){
$(this).panel("resize");
},onClose:function(){
var _f=$.data(_b,"combo");
if(_f){
_f.options.onHidePanel.call(_b);
}
}});
var _10=$(_b).attr("name");
if(_10){
_c.find("input.combo-value").attr("name",_10);
$(_b).removeAttr("name").attr("comboName",_10);
}
_d.attr("autocomplete","off");
return {combo:_c,panel:_e};
};
后面还有 365 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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