我有一个 json 对象作为
[
{"DisplayName":"Answer Number 1","Value":"Answer1","Option":"True"},
{"DisplayName":"Answer Number 1","Value":"Answer1","Option":"False"},
{"DisplayName":"Answer Number 2","Value":"Answer2","Option":"True"},
{"DisplayName":"Answer Number 2","Value":"Answer2","Option":"False"}
]
我需要的是从这个对象创建 2 个下拉菜单作为
答案 1 -> 真/假
答案 2 -> 真/假
下拉部分我会做我自己..我只是对如何迭代这个对象感到困惑。任何人都可以带我举一些例子吗?