<span
class="glyphicon glyphicon-question-sign" rel="drevil"
data-container="body" data-toggle="popover" data-placement="bottom"
data-content="通过单击项目将其移出已选列表(同时放回可选列表)"></span>
//提示信息在data-content中修改
$(function () { $("[data-toggle='popover']").popover(); });
$("[rel=drevil]").popover({
trigger:'manual',
html: 'true',
animation: false
}).on("mouseenter", function () {
var _this = this;
$(this).popover("show");
$(this).siblings(".popover").on("mouseleave", function () {
$(_this).popover('hide');
});
}).on("mouseleave", function () {
var _this = this;
setTimeout(function () {
if (!$(".popover:hover").length) {
$(_this).popover("hide")
}
}, );
});