Helenr
可以自定义啊自定义HTML自定义HTML$(".pop").each(function(){var$pElem=$(this);$pElem.popover({html:true,trigger:"manual",title:getPopoverTitle($pElem.attr("id")),content:getPopoverContent($pElem.attr("id")),container:'body',animation:false});}).on("mouseenter",function(){var_this=this;$(this).popover("show");console.log("mouseentered");$(".popover").on("mouseleave",function(){$(_this).popover('hide');});}).on("mouseleave",function(){var_this=this;setTimeout(function(){if(!$(".popover:hover").length){$(_this).popover("hide");}},100);});functiongetPopoverTitle(target){return$("#"+target+"_content>h2.popover-title").html();};functiongetPopoverContent(target){return$("#"+target+"_content>div.popover-content").html();};