阅读背景:

一旦满足一个案例条件,如何在switch语句中更改案例?

来源:互联网 

I'm trying to figure out how to switch between cases in Javascript/jQuery. I'm creating a dice game where the player needs to roll the dice until they finish the "Phase". Once they finish the "Phase" they will move onto the next "Phase" and any previous "Phases" won't interfere with the current "Phase". There will be several different "Phases" where they start at "Phase 1" and work down to "Phase 2" and so on until the last phase. Is there any way I can work down the "Phases"? I'm trying a switch statement here with no success. If a switch statement won't do the job, what will?I'm trying to figure out how to switch between




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: