如何将ajax响应数据附加到表td?

时间:2018-07-03 12:10:34

标签: javascript jquery ajax

这是ajax响应数据:

{TABLE_DATA_CUS_QUES: Array(5), DISP_QUES_NO_DATA: "display:none", QUES_NO_DATA: ""}
DISP_QUES_NO_DATA:"display:none" QUES_NO_DATA:""
TABLE_DATA_CUS_QUES:Array(5)0:{QUESTION_ID: "5", QUESTION: "Have you had any thoughts of suicide?", DISPLAY_QUES_ROW: "", QUES_COUNT: 1, QUES_ANSWER: "A"}
1:{QUESTION_ID: "6", QUESTION: "How is your sleep?", DISPLAY_QUES_ROW: "", QUES_COUNT: 2, QUES_ANSWER: "B"}
2:{QUESTION_ID: "7", QUESTION: "How is your energy?", DISPLAY_QUES_ROW: "", QUES_COUNT: 3, QUES_ANSWER: "C"}
3:{QUESTION_ID: "8", QUESTION: "Do you prefer to stay at home rather than going out and doing new things?", DISPLAY_QUES_ROW: "", QUES_COUNT: 4, QUES_ANSWER: "D"}
4:{QUESTION_ID: "9", QUESTION: "In the past two weeks, how often have you felt down, depressed, or hopeless?", DISPLAY_QUES_ROW: "", QUES_COUNT: 5, QUES_ANSWER: "F"}
length
:5__proto__:Array(0)__proto__:Object

必填: 我的答案应该是这样的:

  1. 您有自杀的念头吗? -> TestA
  2. 你的睡眠如何? -> TestB
  3. 你的能量如何? -> TestC
  4. 您喜欢呆在家里而不是出去做新事物吗? -> TestD
  5. 在过去的两个星期中,您多久感到沮丧,沮丧或绝望? -> TestE

0 个答案:

没有答案