我所提到的這個插件是:http://plugins.jquery.com/project/fadeslideshow 這是我的腳本調用jumpTo()函數jumpTO功能無法正常工作
var slide;
jQuery(document).ready(function(){
slide=jQuery('#slideshow').fadeSlideShow();
$('ul.dropdown-menu li a').click(function(event) {
var newTopicContent = $(this).attr('id');
slide.jumpTo(newTopicContent);
});
});
當我運行這段代碼,控制檯提供了以下錯誤:
Uncaught TypeError: slide.jumpTo is not a function
我在做什麼錯?請幫忙。
當您使用第三方庫時,請確保您鏈接官方網站的問題,以便其他人能夠輕鬆幫助您。 –
請參閱這個http://stackoverflow.com/questions/3023625/jquery-jump-to-id-no-animation這可能會幫助你。 –
是[this](http://www.simplefadeslideshow.com/)的插件? –