WebContent/jquery-easyui-1.3.3/plugins/jquery.combogrid.js
(开头部分) 5KB这里只显示每个文件的开头 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){
var _3=$.data(_2,"combogrid");
var _4=_3.options;
var _5=_3.grid;
$(_2).addClass("combogrid-f").combo(_4);
var _6=$(_2).combo("panel");
if(!_5){
_5=$("<table></table>").appendTo(_6);
_3.grid=_5;
}
_5.datagrid($.extend({},_4,{border:false,fit:true,singleSelect:(!_4.multiple),onLoadSuccess:function(_7){
var _8=$(_2).combo("getValues");
var _9=_4.onSelect;
_4.onSelect=function(){
};
_1a(_2,_8,_3.remainText);
_4.onSelect=_9;
_4.onLoadSuccess.apply(_2,arguments);
},onClickRow:_a,onSelect:function(_b,_c){
_d();
_4.onSelect.call(this,_b,_c);
},onUnselect:function(_e,_f){
_d();
_4.onUnselect.call(this,_e,_f);
},onSelectAll:function(_10){
_d();
_4.onSelectAll.call(this,_10);
},onUnselectAll:function(_11){
if(_4.multiple){
_d();
}
_4.onUnselectAll.call(this,_11);
}}));
function _a(_12,row){
_3.remainText=false;
_d();
if(!_4.multiple){
$(_2).combo("hidePanel");
}
_4.onClickRow.call(this,_12,row);
};
function _d(){
var _13=_5.datagrid("getSelections");
var vv=[],ss=[];
for(var i=0;i<_13.length;i++){
vv.push(_13[i][_4.idField]);
ss.push(_13[i][_4.textField]);
}
后面还有 189 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
