模仿必应搜索
$.ajax({
type:"GET",
url:"http://api.bing.com/qsonhs.aspx?type=cb&cb=getdata&q=" +searchText,
dataType: "jsonp",
async:false,
jsonp: "getdata",
jsonpCallback: "getdata",
success: function (data) {
getdata(data);
}
});
$('#suggest').delegate('li','click', function () {
var keyword=$(this).text();
location.href='http://cn.bing.com/search?q='+keyword;
});
});