WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/plugins/jquery.validatebox.js
(开头部分) 11KB这里只显示每个文件的开头 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 ($) {
function _1(_2) {
$(_2).addClass("validatebox-text");
};
function _3(_4) {
var _5 = $.data(_4, "validatebox");
_5.validating = false;
if (_5.timer) {
clearTimeout(_5.timer);
}
$(_4).tooltip("destroy");
$(_4).unbind();
$(_4).remove();
};
function _6(_7) {
var _8 = $.data(_7, "validatebox").options;
var _9 = $(_7);
_9.unbind(".validatebox");
if (_8.novalidate || _9.is(":disabled")) {
return;
}
for (var _a in _8.events) {
$(_7).bind(_a + ".validatebox", { target: _7 }, _8.events[_a]);
}
};
function _b(e) {
var _c = e.data.target;
var _d = $.data(_c, "validatebox");
var _e = $(_c);
if ($(_c).attr("readonly")) {
return;
}
_d.validating = true;
_d.value = undefined;
(function () {
if (_d.validating) {
if (_d.value != _e.val()) {
_d.value = _e.val();
if (_d.timer) {
clearTimeout(_d.timer);
}
_d.timer = setTimeout(function () {
$(_c).validatebox("validate");
}, _d.options.delay);
} else {
_f(_c);
}
setTimeout(arguments.callee, 200);
}
})();
};
后面还有 212 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。