WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/plugins/jquery.combobox.js
(开头部分) 17KB这里只显示每个文件的开头 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 ($) {
var _1 = 0;
function _2(_3, _4) {
var _5 = $.data(_3, "combobox");
var _6 = _5.options;
var _7 = _5.data;
for (var i = 0; i < _7.length; i++) {
if (_7[i][_6.valueField] == _4) {
return i;
}
}
return -1;
};
function _8(_9, _a) {
var _b = $.data(_9, "combobox").options;
var _c = $(_9).combo("panel");
var _d = _b.finder.getEl(_9, _a);
if (_d.length) {
if (_d.position().top <= 0) {
var h = _c.scrollTop() + _d.position().top;
_c.scrollTop(h);
} else {
if (_d.position().top + _d.outerHeight() > _c.height()) {
var h = _c.scrollTop() + _d.position().top + _d.outerHeight() - _c.height();
_c.scrollTop(h);
}
}
}
};
function _e(_f, dir) {
var _10 = $.data(_f, "combobox").options;
var _11 = $(_f).combobox("panel");
var _12 = _11.children("div.combobox-item-hover");
if (!_12.length) {
_12 = _11.children("div.combobox-item-selected");
}
_12.removeClass("combobox-item-hover");
var _13 = "div.combobox-item:visible:not(.combobox-item-disabled):first";
var _14 = "div.combobox-item:visible:not(.combobox-item-disabled):last";
if (!_12.length) {
_12 = _11.children(dir == "next" ? _13 : _14);
} else {
if (dir == "next") {
_12 = _12.nextAll(_13);
if (!_12.length) {
_12 = _11.children(_13);
}
} else {
_12 = _12.prevAll(_13);
if (!_12.length) {
_12 = _11.children(_14);
后面还有 407 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。