在JSON數據的數據我想獲取從JSON文件中的一些數據在Javascript發現在Javascript
我有這樣的JSON數據:
var bib = {
"AnthesGarcia-HernandezEtAl2016": {
"author": "C. Anthes and R. J. Garcia-Hernandez and M. Wiedemann and D. Kranzlmuller",
"booktitle": "2016 IEEE Aerospace Conference",
"doi": "10.1109/AERO.2016.7500674",
"file": "AnthesGarcia-HernandezEtAl2016.pdf:AnthesGarcia-HernandezEtAl2016.pdf:PDF",
"keywords": "virtual reality, survey, aerospace",
},
"Bastos2014": {
"author": "Bastos, Ricardo S",
"file": "Bastos2014.pdf:Bastos2014.pdf:PDF",
"institution": "DTIC Document",
"keywords": "maritime, military, submarine, training, simulator, virtual reality, web, webgl, navy"
},
"Baum1994": {
"author": "Baum, David R",
"keywords": "patent, virtual reality, gestures, aviation, training, head-mounted-display, HMD, gloves",
}
我怎麼能取這樣的數據在JS:
var keywords = {
"keywords-name": { // keywords-name as example : virtual reality
"repeat": "??"
},
"keywords-name2": {
"repeat": "??"
},
"keywords-name3": {
"repeat": "??"
}, ...
我不知道如何在JavaScript做..
目前還不清楚你想要什麼。你想輸出什麼? – evolutionxbox