我有这一法典:
<div class="window-compl">
<div class="window showincatalog showing">
<h2>Text1</h2>
</div>
<div class="window">
<h2>Text2</h2>
</div>
<div class="window showincatalog">
<h2>Text3</h2>
</div>
<div class="window showincatalog">
<h2>Text4</h2>
</div>
</div>
在这项职能中,我使用(a)和(b)之前的挑选器:
function rotate(direction) {
var current = $( .showing );
if (direction==0)
var next = $( .showing ).prev( .showincatalog );
else
var next = $( .showing ).next( .showincatalog );
}
当所有支部都有集体表现时,它就会停下来,而当其中一方没有。
如果有人知道为什么不工作,那将是巨大的。
更新:我需要选编“showincatalog”和文本3,但(showing .next( .showincatalog )没有回报。