-1
{
surveyCode:123456,
q1:{
question:'What is your name?',
option1:{
type:'text',
placeholder:'Enter your name',
header:''
}
},
q2:{
question:'What grade are you in?',
option1:{
type:'radio',
content:'9th'
},
option2:{
type:'radio',
content:'10th'
},
option3:{
type:'radio',
content:'11th'
},
option4:{
type:'radio',
content:'12th'
}
}
}
내가 얻을 모든 [오브젝트]는 파일 내 EJS이를 통해 [개체] 반복하려고 할 때마다 함께 클라이언트에 전달이 개체를 통해 반복 것 이 오브젝트 안의 모든 오브젝트를 가져 와서 변수에 저장하십시오. 개체가 내 mongo 데이터베이스에서 검색되고 내 ejs보기로 전달됩니다.어떻게 내가이 생각을 반복하는 방법을 할 수있는, EJS