我想应用这个弹出框
$('.body').popover({
html: true,
trigger: 'hover',
placement: 'top',
container: 'body',
content: function () {
return '<img src="'+$(this).attr('href') + '" />';
}
});
除非/(jpg|gif|png)$/.test($(this).attr('href'))
我不知道该怎么做..因为我以前不能做这个条件,如果我已经在弹出框里面,那就太晚了