How can i have an index roll over from the first index to last index when decrementing

前端 未结 0 801
清酒与你
清酒与你 2020-12-06 03:50

I have an array which holds ABC. What im trying to do is when the index is being decremented and it is at the element A, Then it should roll over to C.

I was able to

相关标签:
回答
  • 消灭零回复
提交回复
热议问题