FormDesign/share/JSUI/plugins/jquery.combotree.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jQuery EasyUI 1.3.6
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combotree");
var _4=_3.options;
var _5=_3.tree;
$(_2).addClass("combotree-f");
$(_2).combo(_4);
var _6=$(_2).combo("panel");
if(!_5){
_5=$("<ul></ul>").appendTo(_6);
$.data(_2,"combotree").tree=_5;
}
_5.tree($.extend({},_4,{checkbox:_4.multiple,onLoadSuccess:function(_7,_8){
var _9=$(_2).combotree("getValues");
if(_4.multiple){
var _a=_5.tree("getChecked");
for(var i=0;i<_a.length;i++){
var id=_a[i].id;
(function(){
for(var i=0;i<_9.length;i++){
if(id==_9[i]){
return;
}
}
_9.push(id);
})();
}
}
var _b=$(this).tree("options");
var _c=_b.onCheck;
var _d=_b.onSelect;
_b.onCheck=_b.onSelect=function(){
};
$(_2).combotree("setValues",_9);
_b.onCheck=_c;
_b.onSelect=_d;
_4.onLoadSuccess.call(this,_7,_8);
},onClick:function(_e){
if(_4.multiple){
$(this).tree(_e.checked?"uncheck":"check",_e.target);
}else{
$(_2).combo("hidePanel");
}
_11(_2);
_4.onClick.call(this,_e);
},onCheck:function(_f,_10){
_11(_2);
_4.onCheck.call(this,_f,_10);
}}));
};
function _11(_12){
后面还有 113 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
