我试图让这个工作,但它只是想...工具提示内容qTip2 jQuery
警报提醒正确的内容..任何想法?
function initToolTip() {
$('.product').qtip({
content: $(this).find('.product-info').html(),
style: 'ui-tooltip-shadow'
});
$('.product').on('hover',function(){
//alert($(this).find('.product-info').html());
});
}
这个解决方案很可能指的是窗口对象,而是在悬停事件中,而是正确引用.product元素 –