如何在javascript中为每个Q添加多个图像?

时间:2016-04-06 19:28:02

标签: javascript image slickquiz

我很难以这种格式添加图像,每次尝试,我都有错误,我的想法是如何让它保持工作。 我想在问题中添加图像。每个图像的每个问题:S。 如果有人可以帮助我。谢谢:S

var questions = [
{
    label : 'What is the capital of Norway IMG HERE?',
    options : ['Stockholm', 'Oslo', 'Copenhagen'],
    answer : ['Oslo'],
    forceAnswer : true
},
{
    label : 'Who was the champion of this years soccer world cup in South Africa IMG HERE?',
    options : ['Brazil', 'Netherlands', 'Spain'],
    answer : ['Spain']
},
{
    label : 'Who was the prime minister(s) of England during World War II IMG HERE?',
    options : ['Clement Attlee', 'Sir Winston Churchill', 'Neville Chamberlain', 'Sir Anthony Eden'],
    answer : [1,2] // refers to the second and third option
},

0 个答案:

没有答案