我有一个数组对象,并在采用了棱角分明的js仅低于对象选择标签显示是我的数组对象如何在选择放置中显示数组对象?
"matcherObject": {
"Percentage Off": [
{
"dealType": "Percentage Off",
"subCategory": "16% to 20%",
"recid": 2
},
{
"dealType": "Percentage Off",
"subCategory": "10 to 15 %",
"recid": 1
},
{
"dealType": "Percentage Off",
"subCategory": "21% to 25%",
"recid": 3
}
],
"Special Deals based on the event": [
{
"dealType": "Special Deals based on the event",
"subCategory": "Buy 1 get one entr",
"recid": 52
},
{
"dealType": "Special Deals based on the event",
"subCategory": "Buy 1 get one entr",
"recid": 54
}
]
};
这个对象我要如何选择标签,请帮我解决这个问题。 图像如何在用户界面显示如下图:
如果我选择标记的NG-模型应该如下格式显示如下
{"dealType": "Percentage Off","subCategory": "16% to 20%","recid": 2}
要在下拉列表显示什么? –
下拉我必须显示子类别名称 –
**请帮助减缓此问题** –