CINXE.COM
跳转中。。。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <script src="//nos.netease.com/fps-pro/frontends/libs/jquery/jquery-2.2.4.min.js"></script> <script> var jquery = $ jquery.ajax({ url:'https://gdm.house.163.com/midware/locate/ipQuery?source=house&callback=ip_callback', type: "GET", success:function (dat){ getcity(dat); } }); function getcity(d){ if(d.code == "OK"){ var city = d.data.city jquery.ajax({ url:'https://xf.house.163.com/bj/annex!queryCitys.action?keyword='+encodeURI(city), type:'GET', dataType:'jsonp', jsonp:'callback', success:function(dat){ ifexist(dat); } }) }else{ window.location.replace('https://xf.house.163.com/bj/search/0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1-1-0-0-0-0-0.html'); } }; function ifexist(dat){ if(dat.citylist.length != 0){ var cityname = dat.citylist[0].city_ename; window.location.replace('https://xf.house.163.com/'+ cityname +'/search/0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1-1-0-0-0-0-0.html'); }else{ window.location.replace('https://xf.house.163.com/bj/search/0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1-1-0-0-0-0-0.html'); } } </script> <title>跳转中。。。</title> </head> </html>