我寫了一個網站巡演的jQuery插件Feature Walkthrough功能演練,檢測時.introTour完成
<button id="yui-galleryintrotourui-buttontourend-id" class="yui-galleryintrotourui-card-next yui3-button notice" data-seqid="end"> … </button>
這是非常如何我目前試圖檢查jQuery函數introTour
有已完成,tour_cards
示例可在website上獲得。
$().introTour(tour_cards, function(){
alert("Finished");
});
我使用.live('click', function(){});
事件拿起試過了,一旦它已經取得的yui-galleryintrotourui-buttontourend-id
,但它不會做任何事情的單擊事件(我想,那是因爲,這些事件必須是在元素添加到DOM本身之前添加)。