我收到此错误SyntaxError:missing;在声明firefox之前显示错误

时间:2016-04-08 10:47:10

标签: javascript cross-domain ibm-cloud retrieve-and-rank

$("#get-results").submit(function (event) {
    console.log("Submitting new analysis...");
    event.preventDefault();
    //$("#question-submit").prop("disabled", true);
    var question = $('#question').val();
    var url1 = "https://@gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/solr/example_collection/fcselect?ranker_id=868fedx13-rank-702&q=does it support encryption &wt=json&fl=id,title,body";
    $.ajax({
        type: "POST",
        url : url1,
        dataType : 'jsonp',
        jsonpCallback : 'callback',
    });
    // JSONP Callback
    function callback(response) {
        //var glacier = JSON.parse(response);
        alert("Response from cross origin: " + response);
    }

}); 

SyntaxError:missing;在声明之前 { “responseHeader”:{ “状态”:0 “QTIME”:70}, “响应”:{ “numFound”:109, “开始”: | _________________ ^     是回应

0 个答案:

没有答案