WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/plugins/jquery.tooltip.js
(开头部分) 8KB这里只显示每个文件的开头 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("tooltip-f");
};
function _3(_4) {
var _5 = $.data(_4, "tooltip").options;
$(_4).unbind(".tooltip").bind(_5.showEvent + ".tooltip", function (e) {
$(_4).tooltip("show", e);
}).bind(_5.hideEvent + ".tooltip", function (e) {
$(_4).tooltip("hide", e);
}).bind("mousemove.tooltip", function (e) {
if (_5.trackMouse) {
_5.trackMouseX = e.pageX;
_5.trackMouseY = e.pageY;
$(_4).tooltip("reposition");
}
});
};
function _6(_7) {
var _8 = $.data(_7, "tooltip");
if (_8.showTimer) {
clearTimeout(_8.showTimer);
_8.showTimer = null;
}
if (_8.hideTimer) {
clearTimeout(_8.hideTimer);
_8.hideTimer = null;
}
};
function _9(_a) {
var _b = $.data(_a, "tooltip");
if (!_b || !_b.tip) {
return;
}
var _c = _b.options;
var _d = _b.tip;
var _e = { left: -100000, top: -100000 };
if ($(_a).is(":visible")) {
_e = _f(_c.position);
if (_c.position == "top" && _e.top < 0) {
_e = _f("bottom");
} else {
if ((_c.position == "bottom") && (_e.top + _d._outerHeight() > $(window)._outerHeight() + $(document).scrollTop())) {
_e = _f("top");
}
}
if (_e.left < 0) {
if (_c.position == "left") {
_e = _f("right");
} else {
$(_a).tooltip("arrow").css("left", _d._outerWidth() / 2 + _e.left);
后面还有 175 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。