刚好看到过一个[网站][1]的实现方式,就是通过用jsonp请求[蜂鸟搜索][2]的返回数据。 Code: var search_url="http://www.fengniaosearch.com/gwt_price.php"; $.ajax({ type: "get", //使用get方法访问后台 dataType: "jsonp", //返回json格式的数据 url: search_url, //要访问的后台地址 data:{ 'keywords':keywords }, success: function(data){ $('#search_res_baidu_pc').html('<span>'+data[0]['price']+'</span>元/每天'); $('#search_res_baidu_phone').html('<span>'+data[1]['price']+'</span>元/每天'); $('#search_res_360').html('<span>'+data[2]['price']+'</span>元/每天'); $('#search_res_shenma').html('<span>'+data[3]['price']+'</span>元/每天'); $('#search_res_sougou').html('<span>'+data[4]['price']+'</span>元/每天'); $('.tr_search_res').show(); $('.res_loading').hide(); $('.res').show(); search_about(); }, error: function() { console.info("error"); }