我有一個有序列表增量href的值
<li id="prev">
<a href="#fragment-1>Next</a>
</li>
我希望在接下來的點擊就應該從4停止遞增href
值
<a href="#fragment-1">...
<a href="#fragment-2">...
<a href="#fragment-3">...
<a href="#fragment-4">...
和回到1 allso是否可能用javascript完成
謝謝
n%5在達到4後不能正常工作,然後再次從零開始,而不是一次。 – harag 2012-04-13 10:34:56
哦,你是對的,我忘了它應該從1開始。 – TimPetricola 2012-04-13 13:55:45