5
不知道爲什麼我得到這個錯誤,無法弄清楚?該循環的作品,我只是在控制檯得到這個錯誤,並想修復它。這就是爲什麼我現在在這裏:)jQuery循環錯誤:無法讀取未定義的屬性'cycleW'
我在同一頁上創建3個不同的週期與同一個選擇器和使用尋呼機的獨特控制。這是我目前:
// Cycle Process individual samples - generate unique navs
$('.prospect-carousel').each(function(i) {
$(this).cycle({
fx: 'scrollHorz',
speed: 500,
pager: '.nav-pl' + i,
pagerAnchorBuilder: function(idx, slide) {
return '.nav-pl'+i+' li:eq(' + idx + ') a';
}
}).cycle('pause');
});
HTML:
<h6 class="carbon_heading">Top Prospects</h6>
<ul id="tab-nav" class="nav nav-tabs">
<li><a href="#c2012">2012</a></li>
<li><a href="#c2013">2013</a></li>
<li><a href="#c2014">2014</a></li>
</ul>
<div id="tab-wrap">
<div id="c2012" class="tab-section">
<div class="prospect-carousel">
<div class="prospect-bio">
<span class="info">
<span class="badge">
RANK
<span class="rank">{count}</span>
</span>
<span class="name">{title} <em>{prospects_position_primary} <a href="{page_uri}">View Bio »</a></em></span>
</span>
</div>
</div>
<ol class="prospect-list nav-pl0">
<li><a href="#">{title} <span>{prospects_position_primary}</span></a></li>
</ol>
<p><i class="icon-th-list"></i> <a href="/rankings/">2012 Player Rankings</a></p>
</div>
<div id="c2013" class="tab-section">
<div class="prospect-carousel">
<div class="prospect-bio">
<span class="info">
<span class="badge">
RANK
<span class="rank">{count}</span>
</span>
<span class="name">{title} <em>{prospects_position_primary} <a href="{page_uri}">View Bio »</a></em></span>
</span>
</div>
</div>
<ol class="prospect-list nav-pl1">
<li><a href="#">{title} <span>{prospects_position_primary}</span></a></li>
</ol>
<p><i class="icon-th-list"></i> <a href="/rankings/2013">2013 Player Rankings</a></p>
</div>
<div id="c2014" class="tab-section">
<div class="prospect-carousel">
<div class="prospect-bio">
<span class="info">
<span class="badge">
RANK
<span class="rank">{count}</span>
</span>
<span class="name">{title} <em>{prospects_position_primary} <a href="{page_uri}">View Bio »</a></em></span>
</span>
</div>
</div>
<ol class="prospect-list nav-pl2">
<li><a href="#">{title} <span>{prospects_position_primary}</span></a></li>
</ol>
<p><i class="icon-th-list"></i> <a href="/rankings/2014">2014 Player Rankings</a></p>
</div>
</div>
enter code here
請張貼您的HTML代碼以及 – 2012-03-27 01:22:49
剛發佈的HTML。我刪除了所有EE標籤以簡化故障排除 – Siebird 2012-03-27 02:02:44
+1。這很有趣。 – 2012-03-27 03:37:31