$("#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, “开始”: | _________________ ^ 是回应