【发布时间】:2013-06-09 13:48:14
【问题描述】:
还有什么可以做的..
var init = {
'questions': [
{
'question': 'jQuery is a...',
'answers': ['JavaScript library','Ruby Gem','PHP Framework','None of the above'],
'correctAnswer': 1
},
{
'question': 'X comes after?',
'answers': ['P','W','Y','v'],
'correctAnswer': 2
},
{
'question': 'Meh stands for..',
'answers': ['Eh','/Sigh','What?','Whatever'],
'correctAnswer': 4
}
] };
现在系统以它所写的方式向我显示问题。那么有没有办法让这些问题随机显示?谢谢。
【问题讨论】:
-
你能解释一下有什么要求吗?
标签: javascript jquery arrays random