我JSON使用值獲取從JSON對象數據如下:內
{
"sales": [{
"manager": "alberic",
"surgeon": "Dr Barry Biggins",
"amount": "300",
"country": "USA",
"percent-seller": "30",
"antiquity": "June 2017",
"date": "6"
}, {
"manager": "support",
"surgeon": "Dr Barry Biggins",
"amount": "300",
"country": "UK",
"percent-seller": "20",
"antiquity": "June 2017",
"date": "2"
}, {
...
}]
}
我想從那裏sales
和manager = "support"
檢索date = "2"
的對象。我如何在jQuery中解決這個問題?
謝謝!
感謝,但我怎麼使用它訪問後從matchedElements醫生? – user1937021
我已經從matchedElements :)修改了我的訪問外科醫生的代碼:) –