钻取json数据

时间:2016-10-11 20:59:54

标签: jquery ajax api

我有这个API https://api.nasa.gov/neo/rest/v1/feed?start_date=2015-09-07&end_date=2015-09-08&detailed=false&api_key=DEMO_KEY

我无法深入研究数据:

我怎样才能让它只给出is_potentially_hazardous_asteroid":true的数据?使用jQuery Ajax,它给了我undefined ......

$(document).ready (function () {
    var url = "https://api.nasa.gov/neo/rest/v1/feed?start_date=2015-09-07&end_date=2015-09-08&api_key=DEMO_KEY";
    $.ajax({
        url: url,
        success: function(data){
            console.log(data.near_earth_objects.2015-09-08);
        }
    });
});

1 个答案:

答案 0 :(得分:0)

请改为尝试:

checking whether we are cross compiling... configure: error: in /projects/tensorflow/tensorflow/tensorflow/contrib/makefile/downloads/protobuf':
configure: error: cannot run C compiled programs.  
If you meant to cross compile, use '--host'.  
See 'config.log' for more details.`