$(".pop").popover({ trigger: "manual" , html: true, animation:false}) .on("mouseenter", function () { var _this = this; // 这里的this触发的dom,需要存起来 否则在下面 .popover的逻辑中this会变为弹出的dom $(this).popover("show"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); }); }).on("mouseleave", function () { var _this = this; setTimeout(function () { if (!$(".popover:hover").length) { $(_this).popover("hide"); } }, 300); });
【转】bootstrap popover 如何在hover状态移动到弹出上不消失
免责声明:文章转载自《【转】bootstrap popover 如何在hover状态移动到弹出上不消失》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇Flutter中的日期插件date_format 中文 国际化 及flutter_cupertino_date_picker常用 Unicode 符号列表下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=