0
此侦听器当前通过点击下面显示的div中的单击触发。 使用jQuery,我如何以编程方式触发事件? - 或者重写监听者可能会更好。jquery - 以编程方式触发侦听器
$("#flipPad a:not(.revert)").bind("click",function(){
var $this = $(this);
$("#flipbox").flip({
direction: $this.attr("rel"),
color: $this.attr("rev"),
content: $this.attr("title"),
onBefore: function(){$(".revert").show()}
})
return false;
});
HTML:
<div id="flipbox">Message1</div>
<div id="flipPad">
<a href="#" class="left" rel="rl" rev="#39AB3E" title="Change content as <em>you</em> like!">left</a>
</div>
的可能重复[jQuery的 - 编程触发事件( http://stackoverflow.com/questions/2700231/jquery-programmatically-trigger-event) – jahroy 2013-04-11 01:37:37