console.log(result) 返回 [object Object]。如何获得 result.name?
2022-08-30 01:23:05
我的脚本由于 .[object Object]
console.log(result)
有人可以解释如何返回和从?console.log
id
name
result
$.ajaxSetup({ traditional: true });
var uri = "";
$("#enginesOuputWaiter").show();
$.ajax({
type: "GET",
url: uri,
dataType: "jsonp",
ContentType:'application/javascript',
data :{'text' : article},
error: function(result) {
$("#enginesOuputWaiter").hide();
if(result.statusText = 'success') {
console.log("ok");
console.log(result);
} else {
$("#enginesOuput").text('Invalid query.');
}
}
});