我想知道是否有可能在調用任意函數時使用jQuery的bind()來觸發自定義事件。類似的, /* when cmsPlugin.func() is called, fire myCustom.func() too */
$.bind(cmsPlugin.func, myCustom.func);
我們在網站上使用Drupal的Lightbox2插件。 當燈箱顯示時,我想激發一些自定義代碼,這
我在我的drupal站點使用lightbox2模塊。 我希望能夠觸發相同頁面上的內容的燈箱。 是這樣的: <a rel="lightbox" href="#">Show content in light box</a>
<div id="content_to_show">the content i want to show in my light box</div>
不能想出一個辦法做到這一