src/main/webapp/resources/xznstatic/js/bootstrap-hover-dropdown.js

(完整代码) 1012B

(function(a,d,c){var b=a();a.fn.dropdownHover=function(e){b=b.add(this.parent());return this.each(function(){var g=a(this),f=g.parent(),i={delay:500,instantlyCloseOthers:true},h={delay:a(this).data("delay"),instantlyCloseOthers:a(this).data("close-others")},j=a.extend(true,{},i,e,h),k;f.hover(function(l){if(!f.hasClass("open")&&!g.is(l.target)){return true}if(j.instantlyCloseOthers===true){b.removeClass("open")}d.clearTimeout(k);f.addClass("open")},function(){k=d.setTimeout(function(){f.removeClass("open")},j.delay)});g.hover(function(){if(j.instantlyCloseOthers===true){b.removeClass("open")}d.clearTimeout(k);f.addClass("open")});f.find(".dropdown-submenu").each(function(){var l=a(this);var m;l.hover(function(){d.clearTimeout(m);l.children(".dropdown-menu").show();l.siblings().children(".dropdown-menu").hide()},function(){var n=l.children(".dropdown-menu");m=d.setTimeout(function(){n.hide()},j.delay)})})})};a(document).ready(function(){a('[data-hover="dropdown"]').dropdownHover()})})(jQuery,this);

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。