【发布时间】:2017-02-14 18:59:32
【问题描述】:
我无法按照<li> 进行随机游戏。每个游戏都应该是独一无二的。
var randomGames = ['Life is Strange', 'Titanfall', 'Call of Duty', 'Tales from the Borderlands', 'Assassin\'s Creed', 'Tomb Raider', 'FIFA']
<ul class="list-group"><h4>These are the games that James like the most</h4>
<li class="james list-group-item">...</li>
<li class="james list-group-item">...</li>
<li class="james list-group-item">...</li>
</ul>
【问题讨论】:
-
问题是什么?
-
实际分配随机值的JS在哪里?
-
@BenM 我做到了,但它不正确所以我没有发布它。
标签: javascript arrays dom random