<microgame>
<gamename>Thunderstruck2</gamename>
<gametype>Bonus Slot</gametype>
<imagename>/images/microgame/thunderstruck2.png</imagename>
<provider>Microgame</provider>
<sequence>4</sequence>
</microgame> <microgame>
<gamename>TombRaider</gamename>
<gametype>Bonus Slot</gametype>
<imagename>/images/microgame/tomb-raider.png</imagename>
<provider>Microgame</provider>
<sequence>5</sequence>
</microgame> <microgame>
<gamename>Cashapillar</gamename>
<gametype>Video Slot</gametype>
<imagename>/images/microgame/cashapillar.png</imagename>
<provider>Microgame</provider>
<sequence>1</sequence>
</microgame>
`
所以我的問題是,我想要得到的imagename根據序列,例如像如果sequence = 1,那麼我應該得到/images/microgame/cashapillar.png,如果sequence = 5,那麼/images/microgame/tomb-raider.png等等。
請任何人都可以幫我解決這個問題,我一直在爲此編寫代碼,但沒有按照順序得到答案。如果有人能幫我完成,我會很感激。謝謝
相應
image
'我一直在寫這個代碼,但沒有得到答案,因爲每個sequence' ..你能不能也發佈您的代碼。 – sunbabaphu