Home > Article > Web Front-end > How to generate a questionnaire_html/css_WEB-ITnose
All questions are stored in a database table, and all options are stored in a database table. Now check out these data and put them in a static page. Can anyone tell me what the idea is? I should use a double loop to generate a question. , loop to generate several corresponding options, generate a question, and then loop to generate several corresponding options. Repeat this. Who knows how to do it? Or share your ideas
You can use a json object, or a two-dimensional array~·
Is there any other way? Ah
Or find them all and put them in the List, traverse in the frontend
Type of question (data structure)
How to save (how to access)
Form of the generated questionnaire ( How to display determines how you write code)
How to specify the number and type of questions when generating the questionnaire (strategy)
How to give points with so few people answering
The option table is subordinate to the question table
How can I give points with so few people answering?
Can you tell me how you achieved it