这是我的自定义事件委派
$(".main_cont").delegate(".live-tipsy-3", "tipsy", function(){
$('.live-tipsy-3').tipsy(
{
delayIn: 100, // delay before showing tooltip (ms)
delayOut: 300, // delay before hiding tooltip (ms)
fade: true, // fade tooltips in/out?
gravity: 'w', // gravity
html: true, // is tooltip content HTML?
offset: 10, // pixel offset of tooltip from element
opacity: 0.8, // opacity of tooltip
title: 'title', // attribute/callback containing tooltip text
trigger: 'hover' // how tooltip is triggered - hover | focus | manual
});
});
我可以在不调用this
$(".live-tipsy-3").trigger("tipsy");