最新回答 / Granzon
<!doctype html><html><head><meta charset="utf-8"><title>测试</title><link href="测试.css" rel="stylesheet" type="text/css"></head><body> <div class="search-container"> <div id="search_tab" cl...
2017-06-16
最赞回答 / 慕丝4684016
$.ajax({ type:'get', async:true, url:"http://api.bing.com/qsonhs.aspx?type=cb&q="+searchText, dataType:"jsonp", jsonp:'cb', jsonpCallBack:'callback', success:function (d) { var d=d.AS...
2017-05-31
最赞回答 / mop18mop183811015
这个没有跨域。还是看评论,可以通过 jsonp的ajax方式来实现。$.ajax({ type:'get', async:true, url:"http://api.bing.com/qsonhs.aspx?type=cb&q="+searchText, dataType:"jsonp", jsonp:'cb', jsonpCallBack:"callback",success:function(d){...},error:function(){}});
2017-05-23