【发布时间】:2014-03-04 05:02:33
【问题描述】:
我有一个巨大的 JSON 文件,每个对象都有三个属性:
[
{
"Product": "Hurtta Frost Jacket",
"Dog Type": "Affenpinscher",
"Size for the dog": "25, 30"
},
{
"Product": "Hurtta Frost Jacket",
"Dog Type": "Afghan Hound",
"Size for the dog": "60, 65"
}
]
狗的类型和尺寸。
What I need is to make to select boxes one for the Product and one for the Dog Type, and when these two options are selected the size for the dog for that object will display in a div anywhere.实现这一目标的正确方法是什么?
【问题讨论】:
-
对不起,但我不明白为什么有 2 个“选择框”:在您的示例中,每个产品都有一个对应的狗类型。而昏迷的尺寸,是不是意味着它是两种不同的尺寸?