有些时候我们使用谷歌实施了search
,但现在已经停止了工作。请在下面找到代码
var siteDetails = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&start=';
function LoadRecordsFromGoogle(jobTitle, country, searchArea, pageNo) {
var searchText = jobTitle;
if (searchArea != undefined && searchArea != '') {
searchText += " jobs in " + searchArea;
} else if (country != undefined && country != '') {
searchText += " jobs in " + country;
}
ajaxUrl = siteDetails + pageNo + '&rsz=large&q=' + searchText + '&callback=myjsonpfunction1';
$.ajax({
url: ajaxUrl,
type: "GET",
dataType: 'jsonp',
jsonp: myjsonpfunction1,
async: 'true',
success: function(data) {
},
error: function(error) {
debugger;
alert(error);
}
});
}
但现在我们收到错误
操作因状态0
而中止