ybqq_0221
2019-07-06 16:41
采纳率: 100%
浏览 2.9k
已采纳

json对象的属性值获取不了?为undefined?

var data1 = {
                "raster_metainfo": [0,0,0,0,0,0,0],
                "navigation_metainfo": [0,0,0,0,0,0,0],
                "thematic_metainfo": [0,0,0,0,0,0,0],
                "text_metainfo":  [0,0,0,0,0,0,0],
                "video_metainfo":  [0,0,0,0,0,0,0],
                "database_metainfo": [0,0,0,0,0,0,0],
                "service_metainfo":  [0,0,0,0,0,0,0]
            }
            jsonData = JSON.stringify(data1);

            var a ='navigation_metainfo';
                        console.log(data1.a);
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

4条回答 默认 最新