首页 > 代码库 > 网络编程 --- URLConnection --- 读取服务器的数据 --- java

网络编程 --- URLConnection --- 读取服务器的数据 --- java

 

使用URLConnection类获取服务器的数据

 

抽象类URLConnection表示一个指向指定URL资源的活动连接,它是java协议处理器机制的一部分。

URL对象的openConnection()方法就是调用了URLStreamHandler的openConnection()方法。

如有疑问请参考:JAVA网络编程[第三版], 如下图:

 

 

怎样获取服务器输出的数据呢?代码如下:

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

/**
 * Created by yuki on 2014/5/15.
 */
public class Demo1 {

    private static String urlStr = "http://www.baidu.com";

    public static void main(String[] args) {

        try {
            // 打开URLConnection进行读取
            URL url = new URL(urlStr);
            URLConnection conn = url.openConnection();
            // 获取输入流并链接到一个reader
            InputStream in = conn.getInputStream();
            Reader reader = new InputStreamReader(in);
            // 读取流并输出
            int c;
            while ((c = reader.read()) != -1) {
                char ch = (char) c;
                System.out.print(ch);

                if(ch == ‘>‘)
                    System.out.println();
            }

        } catch (MalformedURLException e) {
            // 畸形的URL异常
            System.err.println(urlStr + " is not a parseable URL");
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } // end try-catch

    } // end main

} // end Demo1

 

下面是输出的结果中一些乱码的部分,有乱码:

C:\Java\jdk1.7.0_55\bin\java -Didea.launcher.port=7538 "-Didea.launcher.bin.path=D:\java\IntelliJ IDEA 13.1.1\bin" -Dfile.encoding=GBK -classpath "C:\Java\jdk1.7.0_55\jre\lib\charsets.jar;C:\Java\jdk1.7.0_55\jre\lib\deploy.jar;C:\Java\jdk1.7.0_55\jre\lib\javaws.jar;C:\Java\jdk1.7.0_55\jre\lib\jce.jar;C:\Java\jdk1.7.0_55\jre\lib\jfr.jar;C:\Java\jdk1.7.0_55\jre\lib\jfxrt.jar;C:\Java\jdk1.7.0_55\jre\lib\jsse.jar;C:\Java\jdk1.7.0_55\jre\lib\management-agent.jar;C:\Java\jdk1.7.0_55\jre\lib\plugin.jar;C:\Java\jdk1.7.0_55\jre\lib\resources.jar;C:\Java\jdk1.7.0_55\jre\lib\rt.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\access-bridge.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\dnsns.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\jaccess.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\localedata.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunec.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunjce_provider.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunmscapi.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunpkcs11.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\zipfs.jar;D:\Idea\AjaxApp\out\production\UrlConnectionModule;D:\java\IntelliJ IDEA 13.1.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain Demo1
<!DOCTYPE html>
<!--STATUS OK-->
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="dns-prefetch" href="//s1.bdstatic.com"/>
<link rel="dns-prefetch" href="//t1.baidu.com"/>
<link rel="dns-prefetch" href="//t2.baidu.com"/>
<link rel="dns-prefetch" href="//t3.baidu.com"/>
<link rel="dns-prefetch" href="//t10.baidu.com"/>
<link rel="dns-prefetch" href="//t11.baidu.com"/>
<link rel="dns-prefetch" href="//t12.baidu.com"/>
<title>
鐧惧害涓?笅锛屼綘灏辩煡閬?/title>
<style index="index" >
<style data-for="debug">
#debug{display:none!important}</style>
<script >
function h(obj){obj.style.behavior=url(#default#homepage);var a = obj.setHomePage(http://www.baidu.com/);}</script>
<noscript>
<meta http-equiv="refresh" content="0; url=/baidu.html?from=noscript"/>
</noscript>
<script>
window._ASYNC_START=new Date().getTime();</script>
</head>
<body link="#0000cc">
<div id="wrapper" style="display:none;">
<div id="debug" style="display:block;position:absolute;top:30px;right:30px;border:1px solid;padding:5px 10px;">
</div>
<div id="u">
<a href="http://www.baidu.com/gaoji/preferences.html"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘setting‘,‘login‘:‘0‘})">
鎼滅储璁剧疆</a>
|<a id="btop" href="/"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘index‘,‘login‘:‘0‘})">
鐧惧害棣栭〉</a>
|<a id="lb" href="https://passport.baidu.com/v2/?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F" onclick="return false;"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘login‘})">
鐧诲綍</a>
<a href="https://passport.baidu.com/v2/?reg&regType=1&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘reg‘})" target="_blank" class="reg">
娉ㄥ唽</a>
</div>
<div id="head">
<div class="s_nav">
<a href="/" class="s_logo" onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘logo‘})">
<img src="http://www.baidu.com/img/baidu_jgylogo3.gif" width="117" height="38" border="0" alt="鍒扮櫨搴﹂椤? title="鍒扮櫨搴﹂椤?>
</a>
<div class="s_tab" id="s_tab">
<a href="http://news.baidu.com/ns?cl=2&rn=20&tn=news&word=" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘news‘})">
鏂伴椈</a>
&#12288;<b>
缃戦〉</b>
&#12288;<a href="http://tieba.baidu.com/f?kw=&fr=wwwt" wdfield="kw"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘tieba‘})">
璐村惂</a>
&#12288;<a href="http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word=&fr=wwwt" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘zhidao‘})">
鐭ラ亾</a>
&#12288;<a href="http://music.baidu.com/search?fr=ps&key=" wdfield="key"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘music‘})">
闊充箰</a>
&#12288;<a href="http://image.baidu.com/i?tn=baiduimage&ct=201326592&lm=-1&cl=2&nc=1&word=" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘pic‘})">
鍥剧墖</a>
&#12288;<a href="http://v.baidu.com/v?ct=301989888&rn=20&pn=0&db=0&s=25&word=" wdfield="word"   onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘video‘})">
瑙嗛</a>
&#12288;<a href="http://map.baidu.com/m?word=&fr=ps01000" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘map‘})">
鍦板浘</a>
&#12288;<a href="http://wenku.baidu.com/search?word=&lm=0&od=0" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘wenku‘})">
鏂囧簱</a>
&#12288;<a href="http://www.baidu.com/more/"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘more‘})">
鏇村禄</a>
</div>
</div>
<form id="form" name="f" action="/s" class="fm" >
<input type="hidden" name="ie" value="utf-8">
<input type="hidden" name="f" value="8">
<input type="hidden" name="rsv_bp" value="1">
<span class="bg s_ipt_wr">
<input name="wd" id="kw" class="s_ipt" value="" maxlength="100">
</span>
<span class="bg s_btn_wr">
<input type="submit" id="su" value="鐧惧害涓?笅" class="bg s_btn" onm ousedown="this.className=‘bg s_btn s_btn_h‘" onm ouseout="this.className=‘bg s_btn‘">
</span>
<span class="tools">
<span id="mHolder">
<div id="mCon">
<span>
杈撳叆娉?/span>
</div>
<ul id="mMenu">
<li>
<a href="javascript:;" name="ime_hw">
鎵嬪啓</a>
</li>
<li>
<a href="javascript:;" name="ime_py">
鎷奸煶</a>
</li>
<li class="ln">
</li>
<li>
<a href="javascript:;" name="ime_cl">
鍏抽棴</a>
</li>
</ul>
</span>
<span class="shouji">
<strong>
鎺ㄨ崘&nbsp;:&nbsp;</strong>
<a href="http://shouji.baidu.com/baidusearch/mobisearch.html?ref=pcjg&from=1000139w" target="_blank" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘shouji‘})">
鐢ㄦ墜鏈洪殢鏃堕殢鍦颁笂鐧惧害</a>
</span>
</span>
</form>
</div>
<div id="content">
<div id="u1">
<a href="http://www.baidu.com/gaoji/preferences.html" name="tj_setting">
鎼滅储璁剧疆</a>
|<a href="https://passport.baidu.com/v2/?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F" name="tj_login" id="lb" onclick="return false;">
鐧诲綍</a>
<a href="https://passport.baidu.com/v2/?reg&regType=1&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F" target="_blank" name="tj_reg" class="reg">
娉ㄥ唽</a>
</div>
<div id="m">
<p id="lg">
<img src="http://www.baidu.com/img/bdlogo.gif" width="270" height="129">
</p>
<p id="nv">
<a href="http://news.baidu.com">
鏂?nbsp;闂?/a>
銆?b>
缃?nbsp;椤?/b>
銆?a href="http://tieba.baidu.com">
璐?nbsp;鍚?/a>
銆?a href="http://zhidao.baidu.com">
鐭?nbsp;閬?/a>
銆?a href="http://music.baidu.com">
闊?nbsp;涔?/a>
銆?a href="http://image.baidu.com">
鍥?nbsp;鐗?/a>
銆?a href="http://v.baidu.com">
瑙?nbsp;棰?/a>
銆?a href="http://map.baidu.com">
鍦?nbsp;鍥?/a>
</p>
<div id="fm">
<form id="form1" name="f1" action="/s" class="fm">
<span class="bg s_ipt_wr">
<input type="text" name="wd" id="kw1" maxlength="100" class="s_ipt">
</span>
<input type="hidden" name="rsv_bp" value="0">
<input type=hidden name=ch value="">
<input type=hidden name=tn value="baidu">
<input type=hidden name=bar value="">
<input type="hidden" name="rsv_spt" value="3">
<input type="hidden" name="ie" value="utf-8">
<span class="bg s_btn_wr">
<input type="submit" value="鐧惧害涓?笅" id="su1" class="bg s_btn" onm ousedown="this.className=‘bg s_btn s_btn_h‘" onm ouseout="this.className=‘bg s_btn‘">
</span>
</form>
<span class="tools">
<span id="mHolder1">
<div id="mCon1">
<span>
杈撳叆娉?/span>
</div>
</span>
</span>
<ul id="mMenu1">
<li>
<a href="javascript:;" name="ime_hw">
鎵嬪啓</a>
</li>
<li>
<a href="javascript:;" name="ime_py">
鎷奸煶</a>
</li>
<li class="ln">
</li>
<li>
<a href="javascript:;" name="ime_cl">
鍏抽棴</a>
</li>
</ul>
</div>
<p id="lk">
<a href="http://baike.baidu.com">
鐧剧</a>
銆?a href="http://wenku.baidu.com">
鏂囧簱</a>
銆?a href="http://www.hao123.com">
hao123</a>
<span>
&nbsp;|&nbsp;<a href="http://www.baidu.com/more/">
鏇村&gt;&gt;</a>
</span>
</p>
<p id="lm">
</p>
</div>
</div>
<div id="ftCon">
<div id="ftConw">
<p id="st" >
<a id="seth" onClick="h(this)" href="/" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘homepage‘,‘pos‘:0})">
鎶婄櫨搴﹁涓轰富椤?/a>
<a id="setf" href="http://www.baidu.com/cache/sethelp/index.html" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘favorites‘,‘pos‘:0})" target="_blank">
鎶婄櫨搴﹁涓轰富椤?/a>
</p>
<p id="lh">
<a href="http://e.baidu.com/?refer=888" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘btlink‘,‘pos‘:2})">
鍔犲叆鐧惧害鎺ㄥ箍</a>
&nbsp;|&nbsp;<a onmousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘tj_bang‘})" href="http://top.baidu.com">
鎼滅储椋庝簯姒?/a>
&nbsp;|&nbsp;<a onmousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘tj_about‘})" href="http://home.baidu.com">
鍏充簬鐧惧害</a>
&nbsp;|&nbsp;<a onmousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘tj_about_en‘})" href="http://ir.baidu.com">
About Baidu</a>
</p>
<p id="cp">
&copy;2014&nbsp;Baidu&nbsp;<a href="/duty/" name="tj_duty">
浣跨敤鐧惧害鍓嶅繀璇?/a>
&nbsp;浜琁CP璇?30173鍙?nbsp;<img src="http://www.baidu.com/cache/global/img/gs-2.0.gif">

</body>
</html>


Process finished with exit code 0

 

如何才能解决乱码问题呢?修改代码的编码方式不会得到正确的结果,

因为操作代码的编码和要操作的字符串就不在同一级别,

我们需要获取http头中的字符编码,它在Content-Type里有定义。

添加设定字符编码的代码如下:

import java.io.*;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

/**
 * Created by yuki on 2014/5/15.
 */
public class Demo2 {

    public static void main(String[] args) {

        final String URL_STR = "http://www.baidu.com";

        try {
            // 打开一个链接
            URL url = new URL(URL_STR);
            URLConnection urlConnection = url.openConnection();

            // 设置编码方式
            String encoding = "UTF-8";
            final String CHARSET = "charset=";
            String contentType = urlConnection.getContentType();
            int encodingStart = contentType.indexOf(CHARSET);
            if (encodingStart != -1) {
                int offset = encodingStart + CHARSET.length();
                encoding = contentType.substring(offset);
            }

            // 获取输入流
            InputStream in = new BufferedInputStream(
                    urlConnection.getInputStream()
            );
            Reader reader = new InputStreamReader(in, encoding);

            // 获取字符并输出
            int c;
            while ((c = reader.read()) != -1) {
                char ch = (char) c;
                System.out.print(ch);

                if(ch == ‘>‘)
                    System.out.println();
            }

        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}

 

运行结果是:

C:\Java\jdk1.7.0_55\bin\java -Didea.launcher.port=7532 "-Didea.launcher.bin.path=D:\java\IntelliJ IDEA 13.1.1\bin" -Dfile.encoding=GBK -classpath "C:\Java\jdk1.7.0_55\jre\lib\charsets.jar;C:\Java\jdk1.7.0_55\jre\lib\deploy.jar;C:\Java\jdk1.7.0_55\jre\lib\javaws.jar;C:\Java\jdk1.7.0_55\jre\lib\jce.jar;C:\Java\jdk1.7.0_55\jre\lib\jfr.jar;C:\Java\jdk1.7.0_55\jre\lib\jfxrt.jar;C:\Java\jdk1.7.0_55\jre\lib\jsse.jar;C:\Java\jdk1.7.0_55\jre\lib\management-agent.jar;C:\Java\jdk1.7.0_55\jre\lib\plugin.jar;C:\Java\jdk1.7.0_55\jre\lib\resources.jar;C:\Java\jdk1.7.0_55\jre\lib\rt.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\access-bridge.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\dnsns.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\jaccess.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\localedata.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunec.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunjce_provider.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunmscapi.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\sunpkcs11.jar;C:\Java\jdk1.7.0_55\jre\lib\ext\zipfs.jar;D:\Idea\AjaxApp\out\production\UrlConnectionModule;D:\java\IntelliJ IDEA 13.1.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain Demo2
<!DOCTYPE html>
<!--STATUS OK-->
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="dns-prefetch" href="//s1.bdstatic.com"/>
<link rel="dns-prefetch" href="//t1.baidu.com"/>
<link rel="dns-prefetch" href="//t2.baidu.com"/>
<link rel="dns-prefetch" href="//t3.baidu.com"/>
<link rel="dns-prefetch" href="//t10.baidu.com"/>
<link rel="dns-prefetch" href="//t11.baidu.com"/>
<link rel="dns-prefetch" href="//t12.baidu.com"/>
<title>
百度一下,你就知道</title>
<style index="index" >
html,body{height:100%}html{overflow-y:auto}#wrapper{position:relative;_position:;min-height:100%}#content{padding-bottom:100px;text-align:center}#ftCon{height:100px;position:absolute;bottom:44px;text-align:center;width:100%;margin:0 auto;z-index:0;overflow:hidden}#ftConw{width:720px;margin:0 auto}body{font:12px arial;text-align:;background:#fff}body,p,form,ul,li{margin:0;padding:0;list-style:none}body,form,#fm{position:relative}td{text-align:left}img{border:0}a{color:#00c}a:active{color:#f60}.bg{background-image:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_37d13939.png);background-repeat:no-repeat;_background-image:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_5e61a51c.gif)}.bg_tuiguang_browser{width:16px;height:16px;background-position:-600px 0;display:inline-block;vertical-align:text-bottom;font-style:normal;overflow:hidden;margin-right:5px}.bg_tuiguang_browser_big{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-600px -24px}.bg_tuiguang_weishi{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-672px -24px}.c-icon{display:inline-block;width:14px;height:14px;vertical-align:text-bottom;font-style normal;overflow:hidden;background:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_37d13939.png) no-repeat 0 0;_background-image:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_5e61a51c.gif)}.c-icon-triangle-down-blue{background-position:-480px -168px}.c-icon-chevron-unfold2{background-position:-504px -168px}#u1{color:#999;padding:4px 10px 5px 0;text-align:right}#u1 a{margin:0 5px}#u1 .reg{margin:0}#m{width:720px;margin:0 auto}#nv a,#nv b,.btn,#lk{font-size:14px}#fm{padding-left:110px;text-align:left;z-index:1}input{border:0;padding:0}#nv{height:19px;font-size:16px;margin:0 0 4px;text-align:left;text-indent:137px}.s_ipt_wr{width:418px;height:30px;display:inline-block;margin-right:5px;background-position:0 -96px;border:1px solid #b6b6b6;border-color:#9a9a9a #cdcdcd #cdcdcd #9a9a9a;vertical-align:top}.s_ipt{width:405px;height:22px;font:16px/22px arial;margin:5px 0 0 7px;background:#fff;outline:0;-webkit-appearance:none}.s_btn{width:95px;height:32px;padding-top:2px\9;font-size:14px;background-color:#ddd;background-position:0 -48px;cursor:pointer}.s_btn_h{background-position:-240px -48px}.s_btn_wr{width:97px;height:34px;display:inline-block;background-position:-120px -48px;*position:relative;z-index:0;vertical-align:top}#lg img{vertical-align:top;margin-bottom:3px}#lk{margin:33px 0}#lk span{font:14px "宋体"}#lm{height:60px;line-height:15px}#lh{margin:16px 0 5px;word-spacing:3px}.tools{position:absolute;top:-4px;*top:10px;right:7px}#mHolder1{width:62px;position:relative;z-index:296;display:none}#mCon1{height:18px;line-height:18px;position:absolute;cursor:pointer}#mCon1 span{color:#00c;cursor:default;display:block;width:24px}#mCon1 .hw{text-decoration:underline;cursor:pointer;display:inline-block}#mCon1 .pinyin{display:inline-block}#mCon1 .c-icon-chevron-unfold2{margin-left:5px}#mMenu1 a{width:100%;height:100%;display:block;line-height:22px;text-indent:6px;text-decoration:none;filter:none\9}#mMenu1,#user1 ul{box-shadow:1px 1px 2px #ccc;-moz-box-shadow:1px 1px 2px #ccc;-webkit-box-shadow:1px 1px 2px #ccc;filter:progid:DXImageTransform.Microsoft.Shadow(Strength=2,Direction=135,Color="#cccccc")\9}#mMenu1{width:56px;border:1px solid #9b9b9b;list-style:none;position:absolute;right:27px;top:28px;display:none;background:#fff}#mMenu1 a:hover{background:#ebebeb}#mMenu1 .ln{height:1px;background:#ebebeb;overflow:hidden;font-size:1px;line-height:1px;margin-top:-1px}#cp,#cp a{color:#666}#seth{display:none;behavior:url(#default#homepage)}#setf{display:none}#sekj{margin-left:14px}#shouji{margin-right:14px}#u1 .last{margin-right:0}#u1 .un{font-weight:bold;margin-right:5px}#u1 ul{width:100%;background:#fff;border:1px solid #9b9b9b}#u1 li{height:25px}#u1 li a{width:100%;height:25px;line-height:25px;display:block;text-align:left;text-decoration:none;text-indent:6px;margin:0;filter:none\9}#u1 li a:hover{background:#ebebeb}#u1 li.nl{border-top:1px solid #ebebeb}#user_center1{position:relative;display:inline-block}#user_center1 .user_center_btn{margin-right:5px}.userMenu{width:64px;position:absolute;right:7px;_right:2px;top:15px;top:14px\9;*top:15px;padding-top:4px;display:none;*background:#fff}#user1{position:relative;display:inline-block}#head{display:none}#c-tips-container{display:none}#content{display:none}#ftCon{display:none}#u{display:none}.bdsug{position:absolute;width:418px;background:#fff;display:none;border:1px solid #817f82}.bdsug li{width:402px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#ebebeb}#form1 .bdsug{top:31px}.bdsug-store span,.bdsug-store b{color:#7a77c8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(http://www.baidu.com/img/sug_bd.png) no-repeat left center;margin:6px 0 4px 0;font-size:12px;font-weight:normal;color:#7b7b7b;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:bold;padding-left:20px}</style>
<style data-for="debug">
#debug{display:none!important}</style>
<script >
function h(obj){obj.style.behavior=url(#default#homepage);var a = obj.setHomePage(http://www.baidu.com/);}</script>
<noscript>
<meta http-equiv="refresh" content="0; url=/baidu.html?from=noscript"/>
</noscript>
<script>
window._ASYNC_START=new Date().getTime();</script>
</head>
<body link="#0000cc">
<div id="wrapper" style="display:none;">
<div id="debug" style="display:block;position:absolute;top:30px;right:30px;border:1px solid;padding:5px 10px;">
</div>
<div id="u">
<a href="http://www.baidu.com/gaoji/preferences.html"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘setting‘,‘login‘:‘0‘})">
搜索设置</a>
|<a id="btop" href="/"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘index‘,‘login‘:‘0‘})">
百度首页</a>
|<a id="lb" href="https://passport.baidu.com/v2/?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F" onclick="return false;"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘login‘})">
登录</a>
<a href="https://passport.baidu.com/v2/?reg&regType=1&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F"  onm ousedown="return user_c({‘fm‘:‘set‘,‘tab‘:‘reg‘})" target="_blank" class="reg">
注册</a>
</div>
<div id="head">
<div class="s_nav">
<a href="/" class="s_logo" onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘logo‘})">
<img src="http://www.baidu.com/img/baidu_jgylogo3.gif" width="117" height="38" border="0" alt="到百度首页" title="到百度首页">
</a>
<div class="s_tab" id="s_tab">
<a href="http://news.baidu.com/ns?cl=2&rn=20&tn=news&word=" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘news‘})">
新闻</a>
&#12288;<b>
网页</b>
&#12288;<a href="http://tieba.baidu.com/f?kw=&fr=wwwt" wdfield="kw"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘tieba‘})">
贴吧</a>
&#12288;<a href="http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word=&fr=wwwt" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘zhidao‘})">
知道</a>
&#12288;<a href="http://music.baidu.com/search?fr=ps&key=" wdfield="key"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘music‘})">
音乐</a>
&#12288;<a href="http://image.baidu.com/i?tn=baiduimage&ct=201326592&lm=-1&cl=2&nc=1&word=" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘pic‘})">
图片</a>
&#12288;<a href="http://v.baidu.com/v?ct=301989888&rn=20&pn=0&db=0&s=25&word=" wdfield="word"   onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘video‘})">
视频</a>
&#12288;<a href="http://map.baidu.com/m?word=&fr=ps01000" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘map‘})">
地图</a>
&#12288;<a href="http://wenku.baidu.com/search?word=&lm=0&od=0" wdfield="word"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘wenku‘})">
文库</a>
&#12288;<a href="http://www.baidu.com/more/"  onm ousedown="return c({‘fm‘:‘tab‘,‘tab‘:‘more‘})">
更多?</a>
</div>
</div>
<form id="form" name="f" action="/s" class="fm" >
<input type="hidden" name="ie" value="utf-8">
<input type="hidden" name="f" value="8">
<input type="hidden" name="rsv_bp" value="1">
<span class="bg s_ipt_wr">
<input name="wd" id="kw" class="s_ipt" value="" maxlength="100">
</span>
<span class="bg s_btn_wr">
<input type="submit" id="su" value="百度一下" class="bg s_btn" onm ousedown="this.className=‘bg s_btn s_btn_h‘" onm ouseout="this.className=‘bg s_btn‘">
</span>
<span class="tools">
<span id="mHolder">
<div id="mCon">
<span>
输入法</span>
</div>
<ul id="mMenu">
<li>
<a href="javascript:;" name="ime_hw">
手写</a>
</li>
<li>
<a href="javascript:;" name="ime_py">
拼音</a>
</li>
<li class="ln">
</li>
<li>
<a href="javascript:;" name="ime_cl">
关闭</a>
</li>
</ul>
</span>
<span class="shouji">
<strong>
推荐&nbsp;:&nbsp;</strong>
<a href="http://shouji.baidu.com/baidusearch/mobisearch.html?ref=pcjg&from=1000139w" target="_blank" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘shouji‘})">
用手机随时随地上百度</a>
</span>
</span>
</form>
</div>
<div id="content">
<div id="u1">
<a href="http://www.baidu.com/gaoji/preferences.html" name="tj_setting">
搜索设置</a>
|<a href="https://passport.baidu.com/v2/?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F" name="tj_login" id="lb" onclick="return false;">
登录</a>
<a href="https://passport.baidu.com/v2/?reg&regType=1&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F" target="_blank" name="tj_reg" class="reg">
注册</a>
</div>
<div id="m">
<p id="lg">
<img src="http://www.baidu.com/img/bdlogo.gif" width="270" height="129">
</p>
<p id="nv">
<a href="http://news.baidu.com">&nbsp;</a>
 <b>&nbsp;</b>
 <a href="http://tieba.baidu.com">&nbsp;</a>
 <a href="http://zhidao.baidu.com">&nbsp;</a>
 <a href="http://music.baidu.com">&nbsp;</a>
 <a href="http://image.baidu.com">&nbsp;</a>
 <a href="http://v.baidu.com">&nbsp;</a>
 <a href="http://map.baidu.com">&nbsp;</a>
</p>
<div id="fm">
<form id="form1" name="f1" action="/s" class="fm">
<span class="bg s_ipt_wr">
<input type="text" name="wd" id="kw1" maxlength="100" class="s_ipt">
</span>
<input type="hidden" name="rsv_bp" value="0">
<input type=hidden name=ch value="">
<input type=hidden name=tn value="baidu">
<input type=hidden name=bar value="">
<input type="hidden" name="rsv_spt" value="3">
<input type="hidden" name="ie" value="utf-8">
<span class="bg s_btn_wr">
<input type="submit" value="百度一下" id="su1" class="bg s_btn" onm ousedown="this.className=‘bg s_btn s_btn_h‘" onm ouseout="this.className=‘bg s_btn‘">
</span>
</form>
<span class="tools">
<span id="mHolder1">
<div id="mCon1">
<span>
输入法</span>
</div>
</span>
</span>
<ul id="mMenu1">
<li>
<a href="javascript:;" name="ime_hw">
手写</a>
</li>
<li>
<a href="javascript:;" name="ime_py">
拼音</a>
</li>
<li class="ln">
</li>
<li>
<a href="javascript:;" name="ime_cl">
关闭</a>
</li>
</ul>
</div>
<p id="lk">
<a href="http://baike.baidu.com">
百科</a>
 <a href="http://wenku.baidu.com">
文库</a>
 <a href="http://www.hao123.com">
hao123</a>
<span>
&nbsp;|&nbsp;<a href="http://www.baidu.com/more/">
更多&gt;&gt;</a>
</span>
</p>
<p id="lm">
</p>
</div>
</div>
<div id="ftCon">
<div id="ftConw">
<p id="st" >
<a id="seth" onClick="h(this)" href="/" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘homepage‘,‘pos‘:0})">
把百度设为主页</a>
<a id="setf" href="http://www.baidu.com/cache/sethelp/index.html" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘favorites‘,‘pos‘:0})" target="_blank">
把百度设为主页</a>
</p>
<p id="lh">
<a href="http://e.baidu.com/?refer=888" onm ousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘btlink‘,‘pos‘:2})">
加入百度推广</a>
&nbsp;|&nbsp;<a onmousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘tj_bang‘})" href="http://top.baidu.com">
搜索风云榜</a>
&nbsp;|&nbsp;<a onmousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘tj_about‘})" href="http://home.baidu.com">
关于百度</a>
&nbsp;|&nbsp;<a onmousedown="return ns_c({‘fm‘:‘behs‘,‘tab‘:‘tj_about_en‘})" href="http://ir.baidu.com">
About Baidu</a>
</p>
<p id="cp">
&copy;2014&nbsp;Baidu&nbsp;<a href="/duty/" name="tj_duty">
使用百度前必读</a>
&nbsp;京ICP证030173号&nbsp;<img src="http://www.baidu.com/cache/global/img/gs-2.0.gif">
</p>
</div>
</div>
<div id="wrapper_wrapper">
</div>
</div>
<div class="c-tips-container" id="c-tips-container">
</div>
<script>
window.__async_strategy=2;</script>
<script>
var bds={se:{},su:{urdata:[],urSendClick:function(){}},util:{},use:{},comm : {domain:"http://www.baidu.com",ubsurl : "http://sclick.baidu.com/w.gif",tn:"baidu",queryEnc:"",queryId:"",inter:"",templateName:"baidu",sugHost : "http://suggestion.baidu.com/su",query : "",qid : "dd6d4821000097f2",cid : "0",sid : "6249_1448_5225_6505_6478_4759_6017_6462_6428_6500_6311_6454_6442_6502",indexSid : "6249_1448_5225_6505_6478_4759_6017_6462_6428_6500_6311_6454_6442_6502",stoken : "",serverTime : "1400172568",user : "",username : "",loginAction : [],useFavo : "",pinyin : "",favoOn : "",curResultNum:"0",rightResultExist:false,protectNum:0,zxlNum:0,pageNum:1,pageSize:10,newindex:0,async:1,maxPreloadThread:5,maxPreloadTimes:10,preloadMouseMoveDistance:5,switchAddMask:false,isDebug:false,ishome : 1},_base64:{domain : "http://b1.bdstatic.com/",b64Exp : -1,pdc : 0}};var name,navigate,al_arr=[];var selfOpen = window.open;eval("var open = selfOpen;");var isIE=navigator.userAgent.indexOf("MSIE")!=-1&&!window.opera;var E = bds.ecom= {};bds.se.mon = {loadedItems:[],load:function(){},srvt:-1};try {bds.se.mon.srvt = parseInt(document.cookie.match(new RegExp("(^| )BDSVRTM=([^;]*)(;|$)"))[2]);document.cookie="BDSVRTM=;expires=Sat, 01 Jan 2000 00:00:00 GMT"; }catch(e){}var bdUser = bds.comm.user?bds.comm.user:null,bdQuery = bds.comm.query,bdUseFavo = bds.comm.useFavo,bdFavoOn = bds.comm.favoOn,bdCid = bds.comm.cid,bdSid = bds.comm.sid,bdServerTime = bds.comm.serverTime,bdQid = bds.comm.queryId,bdstoken = bds.comm.stoken,login_success = [];</script>
<script>
if(!location.hash.match(/[^a-zA-Z0-9]wd=/)){document.getElementById("ftCon").style.display=block;document.getElementById("u1").style.display=block;document.getElementById("content").style.display=block;document.getElementById("wrapper").style.display=block;setTimeout(function(){try{document.getElementById("kw1").focus();}catch(e){}},0);}</script>
<script type="text/javascript" src="http://s1.bdstatic.com/r/www/cache/static/jquery/jquery-1.10.2.min_f2fb5194.js">
</script>
<script>
(function(){var result_common_css="<style >
body{color:#333;background:#fff;padding:6px 0 0;margin:0;position:relative;min-width:900px}body,th,td,.p1,.p2{font-family:arial}p,form,ol,ul,li,dl,dt,dd,h3{margin:0;padding:0;list-style:none}input{padding-top:0;padding-bottom:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}table,img{border:0}td{font-size:9pt;line-height:18px}em{font-style:normal;color:#cc0000}a em{text-decoration:underline}cite{font-style:normal;color:#008000}.m,a.m{color:#666}a.m:visited{color:#606}.g,a.g{color:#008000}.c{color:#77c}.f14{font-size:14px}.f10{font-size:10.5pt}.f16{font-size:16px}.f13{font-size:13px}.bg{background-image:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_37d13939.png);background-repeat:no-repeat;_background-image:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_5e61a51c.gif);background-repeat:no-repeat}.bg_tuiguang_browser{width:16px;height:16px;background-position:-600px 0;display:inline-block;vertical-align:text-bottom;font-style:normal;overflow:hidden;margin-right:5px}.bg_tuiguang_browser_big{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-600px -24px}.bg_tuiguang_weishi{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-672px -24px}#u,#head,#tool,#search,#foot{font-size:12px}.logo{width:117px;height:38px;cursor:pointer}.p1{line-height:120%;margin-left:-12pt}.p2{width:100%;line-height:120%;margin-left:-12pt}#wrapper{_zoom:1}#container{word-break:break-all;word-wrap:break-word}.container_s{width:1002px}.container_l{width:1222px}#content_left{width:636px;float:left;padding-left:35px}#content_right{border-left:1px solid #e1e1e1;float:right}.container_s #content_right{width:271px}.container_l #content_right{width:434px}.content_none{padding-left:35px}#u{color:#999;white-space:nowrap;position:absolute;right:10px;top:4px;z-index:299}#u a{color:#00c;margin:0 5px}#u .reg{margin:0}#u .last{margin-right:0}#u .un{font-weight:bold;margin-right:5px}#u ul{width:100%;background:#fff;border:1px solid #9b9b9b}#u li{height:25px}#u li a{width:100%;height:25px;line-height:25px;display:block;text-align:left;text-decoration:none;text-indent:6px;margin:0;filter:none\\9}#u li a:hover{background:#ebebeb}#u li.nl{border-top:1px solid #ebebeb}#user{position:relative;display:inline-block}#user_center{position:relative;display:inline-block}#user_center .user_center_btn{margin-right:5px}.userMenu{width:64px;position:absolute;right:7px;_right:2px;top:15px;top:14px\\9;*top:15px;padding-top:4px;display:none;*background:#fff}#head{padding-left:35px;margin-bottom:20px;width:900px}.fm{clear:both;position:relative;z-index:297}.nv a,.nv b,.btn,#page,#more{font-size:14px}.s_nav{height:45px}.s_nav .s_logo{margin-right:20px;float:left}.s_nav .s_logo img{border:0;display:block}.s_tab{line-height:18px;padding:20px 0 0;float:left}.s_nav a{color:#0000cc;font-size:14px}.s_nav b{font-size:14px}.s_ipt_wr{width:536px;height:30px;display:inline-block;margin-right:5px;background-position:0 -96px;border:1px solid #b6b6b6;border-color:#7b7b7b #b6b6b6 #b6b6b6 #7b7b7b;vertical-align:top}.s_ipt{width:523px;height:22px;font:16px\/22px arial;margin:5px 0 0 7px;padding:0;background:#fff;border:0;outline:0;-webkit-appearance:none}.s_btn{width:95px;height:32px;padding-top:2px\\9;font-size:14px;padding:0;background-color:#ddd;background-position:0 -48px;border:0;cursor:pointer}.s_btn_h{background-position:-240px -48px}.s_btn_wr{width:97px;height:34px;display:inline-block;background-position:-120px -48px;*position:relative;z-index:0;vertical-align:top}.sethf{padding:0;margin:0;font-size:14px}.set_h{display:none;behavior:url(#default#homepage)}.set_f{display:none}.shouji{margin-left:19px}.bdsug{position:absolute;width:536px;background:#fff;display:none;border:1px solid #817f82}.bdsug li{width:520px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#ebebeb}#head .bdsug{top:31px}#search form{position:relative}#search form .bdsug{bottom:33px}.bdsug-store span,.bdsug-store b{color:#7a77c8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(http:\/\/www.baidu.com\/img\/sug_bd.png) no-repeat left center;margin:6px 0 4px 0;font-size:12px;font-weight:normal;color:#7b7b7b;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:bold;padding-left:20px}#tb_mr{color:#00c;cursor:pointer;position:relative;z-index:298}#tb_mr b{font-weight:normal;text-decoration:underline}#tb_mr small{font-size:11px}#page{font:14px arial;white-space:nowrap;padding-left:35px}#page a,#page strong{display:inline-block;vertical-align:text-bottom;height:66px;text-align:center;line-height:34px;text-decoration:none;overflow:hidden;margin-right:9px;background:white}#page a{cursor:pointer}#page a:hover{background:0}#page .n:hover,#page a:hover .pc{background:#f2f8ff;border:1px solid #38f}#page .n{height:34px;padding:0 18px;border:1px solid #e1e2e3}#page span{display:block}#page .pc{width:34px;height:34px;border:1px solid #e1e2e3;cursor:pointer}#page .fk{width:24px;height:24px;margin-bottom:6px;margin-left:6px;cursor:pointer}#page strong .fk,#page strong .pc{cursor:auto}#page .fk .c-icon-bear-pn{top:-3px;position:relative}#page .fkd .c-icon-bear-pn{top:3px;position:relative}#page .fk_cur .c-icon-bear-p{top:-2px;position:relative}#page strong .pc{border:0;width:36px;height:36px;line-height:36px}#page .nums{display:inline-block;vertical-align:text-bottom;height:36px;line-height:36px;margin-left:10px}#rs{width:900px;background:#fff;padding:8px 0;margin:20px 0 0 15px}#rs td{width:5%}#rs th{font-size:14px;font-weight:normal;line-height:19px;white-space:nowrap;text-align:left;vertical-align:top}#rs .tt{font-weight:bold;padding:0 10px 0 20px}#rs_top{font-size:14px;margin-bottom:22px}#rs_top a{margin-right:18px}#search{width:900px;padding:35px 0 16px 35px}#search .s_help{position:relative;top:10px}#foot{height:20px;line-height:20px;color:#77c;background:#e6e6e6;text-align:center}#foot span{color:#666}.site_tip{font-size:12px;margin-bottom:20px}.site_tip_icon{width:56px;height:56px;background:url(http:\/\/www.baidu.com\/aladdin\/img\/tools\/tools-3.png) -288px 0 no-repeat}.to_zhidao,.to_tieba,.to_zhidao_bottom{font-size:16px;line-height:24px;margin:20px 0 0 35px}.to_tieba .c-icon-tieba{float:left}.f{line-height:115%;*line-height:120%;font-size:100%;width:33.7em;word-break:break-all;word-wrap:break-word}.h{margin-left:8px;width:100%}.r{word-break:break-all;cursor:hand;width:238px}.t{font-weight:normal;font-size:medium;margin-bottom:1px}.pl{padding-left:3px;height:8px;padding-right:2px;font-size:14px}.mo,a.mo:link,a.mo:visited{color:#666;font-size:100%;line-height:10px}.htb{margin-bottom:5px}.jc a{color:#cc0000}a font[size=\"3\"] font,font[size=\"3\"] a font{text-decoration:underline}div.blog,div.bbs{color:#707070;padding-top:2px;font-size:13px}.result{width:33.7em;table-layout:fixed}.result-op .f{word-wrap:normal}.nums{font-size:12px;color:#999}.tools{position:absolute;top:10px;white-space:nowrap}#mHolder{width:62px;position:relative;z-index:296;top:-18px;margin-left:9px;margin-right:-12px;display:none}#mCon{height:18px;position:absolute;right:7px;top:3px;top:6px\\9;cursor:pointer;line-height:18px}#mCon span{color:#00c;cursor:default;display:block}#mCon .hw{text-decoration:underline;cursor:pointer;display:inline-block}#mCon .pinyin{display:inline-block}#mCon .c-icon-chevron-unfold2{margin-left:5px}#mMenu{width:56px;border:1px solid #9b9b9b;position:absolute;right:7px;top:23px;display:none;background:#fff}#mMenu a{width:100%;height:100%;color:#00c;display:block;line-height:22px;text-indent:6px;text-decoration:none;filter:none\\9}#mMenu a:hover{background:#ebebeb}#mMenu .ln{height:1px;background:#ebebeb;overflow:hidden;font-size:1px;line-height:1px;margin-top:-1px}.op_LAMP{background:url(\"\/cache\/global\/img\/aladdinIcon-1.0.gif\") no-repeat 0 2px;color:#77C;display:inline-block;font-size:13px;height:12px;*height:14px;width:16px;text-decoration:none;zoom:1}.EC_mr15{margin-left:0}.pd15{padding-left:0}.map_1{width:30em;font-size:80%;line-height:145%}.map_2{width:25em;font-size:80%;line-height:145%}.favurl{background-repeat:no-repeat;background-position:0 1px;padding-left:20px}.dan_tip{font-size:12px;margin-top:4px}.dan_tip a{color:#b95b07}#more,#u ul,#mMenu,.msg_holder{box-shadow:1px 1px 2px #ccc;-moz-box-shadow:1px 1px 2px #ccc;-webkit-box-shadow:1px 1px 2px #ccc;filter:progid:DXImageTransform.Microsoft.Shadow(Strength=2,Direction=135,Color=\"#cccccc\")\\9}.hit_top{line-height:18px;margin:0 15px 10px 0;width:516px}.hit_top .c-icon-bear{height:18px;margin-right:4px}.f a font[size=\"3\"] font,.f font[size=\"-1\"] a font{text-decoration:underline}h3 a font{text-decoration:underline}.c-title{font-weight:normal;font-size:16px}.c-title-size{font-size:16px}.c-abstract{font-size:13px}.c-abstract-size{font-size:13px}.c-showurl{color:#008000;font-size:13px}.c-showurl-color{color:#008000}.c-cache-color{color:#666}.c-lightblue{color:#77C}.c-highlight-color{color:#C00}.c-clearfix:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.c-clearfix{zoom:1}.c-wrap{word-break:break-all;word-wrap:break-word}.c-icons-outer{overflow:hidden;display:inline-block;vertical-align:bottom}.c-icons-inner{margin-left:-4px}.c-container table.result,.c-container table.result-op{width:100%}.c-container td.f{font-size:13px;line-height:1.54;width:auto}.c-container .vd_newest_main{width:auto}.c-customicon{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-tip-icon i{display:inline-block;cursor:pointer}.c-tip-con{position:absolute;z-index:1;top:22px;left:-35px;background:#fff;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.2);-webkit-transition:opacity .218s;transition:opacity .218s;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);padding:5px 0 5px 0;display:none;font-size:12px;line-height:20px}.c-tip-arrow{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;top:-16px}.c-tip-arrow em,.c-tip-arrow ins{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;border:8px solid #000;border-style:dashed dashed solid dashed}.c-tip-arrow em{border-color:transparent transparent #d8d8d8 transparent}.c-tip-arrow ins{border-color:transparent transparent #fff transparent;top:2px}.c-tip-con h3{font-size:12px}.c-tip-con .c-tip-title{margin:0 10px;display:inline-block;width:239px}.c-tip-con .c-tip-info{color:#666;margin:0 10px 1px 10px;width:239px}.c-tip-con .c-tip-cer{width:354px;color:#666;margin:0 10px 1px 10px}.c-tip-con .c-tip-title{width:auto;_width:354px}.c-tip-con .c-tip-item-i{padding:3px 0 3px 20px;line-height:14px}.c-tip-con .c-tip-item-i .c-tip-item-icon{margin-left:-20px}.c-tip-con .c-tip-menu ul{width:74px}.c-tip-con .c-tip-menu ul{text-align:center}.c-tip-con .c-tip-menu li a{display:block;text-decoration:none;cursor:pointer;background-color:#fff;padding:3px 0;color:#0000d0}.c-tip-con .c-tip-menu li a:hover{display:block;background-color:#ebebeb}.c-tip-con .c-tip-notice{width:239px;padding:0 10px}.c-tip-con .c-tip-notice .c-tip-notice-succ{color:#4cbd37}.c-tip-con .c-tip-notice .c-tip-notice-fail{color:#f13f40}.c-tip-con .c-tip-notice .c-tip-item-succ{color:#444}.c-tip-con .c-tip-notice .c-tip-item-fail{color:#aaa}.c-tip-con .c-tip-notice .c-tip-item-faila{color:#aaa}.c-tip-close{right:10px;position:absolute;cursor:pointer}.c-tools{display:inline}.c-tools-share{width:239px;padding:0 10px}.icp_info{color:#666;margin-top:2px;font-size:13px}.icon-gw,.icon-unsafe-icon{background:#2c99ff;vertical-align:text-bottom;*vertical-align:baseline;height:16px;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px;line-height:16px;_padding-top:2px;_height:14px;_line-height:14px;font-size:12px;font-family:simsun;margin-left:10px;overflow:hidden;display:inline-block;-moz-border-radius:1px;-webkit-border-radius:1px;border-radius:1px;color:#fff}a.icon-gw{color:#fff;background:#2196ff;text-decoration:none;cursor:pointer}a.icon-gw:hover{background:#1e87ef}a.icon-gw:active{height:15px;_height:13px;line-height:15px;_line-height:13px;padding-left:5px;background:#1c80d9;border-left:1px solid #145997;border-top:1px solid #145997}.icon-unsafe-icon{background:#e54d4b}#con-at{margin-bottom:15px}#con-ar{margin-bottom:40px}#con-at .result-op{margin-bottom:15px;font-size:13px;line-height:1.52em}#con-ar .result-op{margin-bottom:28px;font-size:13px;line-height:1.52em}#content_left .result-op,#content_left .result{margin-bottom:14px;border-collapse:collapse}#content_left .c-border .result-op,#content_left .c-border .result{margin-bottom:25px}#content_left .c-border .result-op:last-child,#content_left .c-border .result:last-child{margin-bottom:12px}#content_left .result .f,#content_left .result-op .f{padding:0}.subLink_factory{border-collapse:collapse}.subLink_factory td{padding:0}.subLink_factory td.middle,.subLink_factory td.last{color:#666}.subLink_factory td a{text-decoration:underline}.subLink_factory td.rightTd{text-align:right}.subLink_factory_right{width:100%}.subLink_factory_left td{padding-right:26px}.subLink_factory_left td.last{padding:0}.subLink_factory_left td.first{padding-right:75px}.subLink_factory_right td{width:90px}.subLink_factory_right td.first{width:auto}.general_image_pic{margin-top:2px}.general_image_pic a{background:#fff no-repeat center center;text-decoration:none;display:block;overflow:hidden;text-align:center}@-moz-document url-prefix(){.result,.f{width:538px}}<\/style>
";result_common_css=$(result_common_css);result_common_css.attr("data-for","result");var result_aladdin_css="<style>
.c-icon{background:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_37d13939.png) no-repeat 0 0;_background-image:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_5e61a51c.gif)}.c-frame{margin-bottom:18px}.c-offset{padding-left:10px}.c-gray{color:#666}.c-gap-top-small{margin-top:5px}.c-gap-top{margin-top:10px}.c-gap-bottom-small{margin-bottom:5px}.c-gap-bottom{margin-bottom:10px}.c-gap-left{margin-left:12px}.c-gap-left-small{margin-left:6px}.c-gap-right{margin-right:12px}.c-gap-right-small{margin-right:6px}.c-gap-icon-right-small{margin-right:5px}.c-gap-icon-right{margin-right:10px}.c-gap-icon-left-small{margin-left:5px}.c-gap-icon-left{margin-left:10px}.c-container{width:538px;font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all}.c-container .c-container{width:auto}.c-container table{border-collapse:collapse;border-spacing:0}.c-container td{font-size:13px;line-height:1.54}.c-default{font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all}.c-container .t,.c-default .t{line-height:1.54}.c-default .t{margin-bottom:0}.cr-content{width:259px;font-size:13px;line-height:1.54;color:#333}.cr-content table{border-collapse:collapse;border-spacing:0}.cr-content td{font-size:13px;line-height:1.54;vertical-align:top}.cr-offset{padding-left:17px}.cr-title{font-size:14px;line-height:1.29;font-weight:bold}.cr-title-sub{float:right;font-size:13px;font-weight:normal}.c-row{*zoom:1}.c-row:after{display:block;height:0;content:\"\";clear:both;visibility:hidden}.c-span2{width:29px}.c-span3{width:52px}.c-span4{width:75px}.c-span5{width:98px}.c-span6{width:121px}.c-span7{width:144px}.c-span8{width:167px}.c-span9{width:190px}.c-span10{width:213px}.c-span11{width:236px}.c-span12{width:259px}.c-span13{width:282px}.c-span14{width:305px}.c-span15{width:328px}.c-span16{width:351px}.c-span17{width:374px}.c-span18{width:397px}.c-span19{width:420px}.c-span20{width:443px}.c-span21{width:466px}.c-span22{width:489px}.c-span23{width:512px}.c-span24{width:535px}.c-span2,.c-span3,.c-span4,.c-span5,.c-span6,.c-span7,.c-span8,.c-span9,.c-span10,.c-span11,.c-span12,.c-span13,.c-span14,.c-span15,.c-span16,.c-span17,.c-span18,.c-span19,.c-span20,.c-span21,.c-span22,.c-span23,.c-span24{float:left;_display:inline;margin-right:17px;list-style:none}.c-span-last{margin-right:0}.c-span-last-s{margin-right:0}.container_l .cr-content{width:351px}.container_l .cr-content .c-span-last-s{margin-right:17px}.container_l .cr-content-narrow{width:259px}.container_l .cr-content-narrow .c-span-last-s{margin-right:0}.c-border{width:518px;padding:9px;border:1px solid #e3e3e3;border-bottom-color:#e0e0e0;border-right-color:#ececec;box-shadow:1px 2px 1px rgba(0,0,0,0.072);-webkit-box-shadow:1px 2px 1px rgba(0,0,0,0.072);-moz-box-shadow:1px 2px 1px rgba(0,0,0,0.072);-o-box-shadow:1px 2px 1px rgba(0,0,0,0.072)}.c-border .c-gap-left{margin-left:10px}.c-border .c-gap-left-small{margin-left:5px}.c-border .c-gap-right{margin-right:10px}.c-border .c-gap-right-small{margin-right:5px}.c-border .c-border{width:auto;padding:0;border:0;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none}.c-border .c-span2{width:34px}.c-border .c-span3{width:56px}.c-border .c-span4{width:78px}.c-border .c-span5{width:100px}.c-border .c-span6{width:122px}.c-border .c-span7{width:144px}.c-border .c-span8{width:166px}.c-border .c-span9{width:188px}.c-border .c-span10{width:210px}.c-border .c-span11{width:232px}.c-border .c-span12{width:254px}.c-border .c-span13{width:276px}.c-border .c-span14{width:298px}.c-border .c-span15{width:320px}.c-border .c-span16{width:342px}.c-border .c-span17{width:364px}.c-border .c-span18{width:386px}.c-border .c-span19{width:408px}.c-border .c-span20{width:430px}.c-border .c-span21{width:452px}.c-border .c-span22{width:474px}.c-border .c-span23{width:496px}.c-border .c-span24{width:518px}.c-border .c-span2,.c-border .c-span3,.c-border .c-span4,.c-border .c-span5,.c-border .c-span6,.c-border .c-span7,.c-border .c-span8,.c-border .c-span9,.c-border .c-span10,.c-border .c-span11,.c-border .c-span12,.c-border .c-span13,.c-border .c-span14,.c-border .c-span15,.c-border .c-span16,.c-border .c-span17,.c-border .c-span18,.c-border .c-span19,.c-border .c-span20,.c-border .c-span21,.c-border .c-span22,.c-border .c-span23,.c-border .c-span24{margin-right:10px}.c-border .c-span-last{margin-right:0}.c-loading{display:block;width:50px;height:50px;background:url(http:\/\/www.baidu.com\/aladdin\/img\/tools\/loading.gif) no-repeat 0 0}.c-vline{display:inline-block;margin:0 3px;border-left:1px solid #ddd;width:0;height:12px;_vertical-align:middle;_overflow:hidden}.c-icon{display:inline-block;width:14px;height:14px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold{width:12px;height:12px}.c-icon-star,.c-icon-star-gray{width:60px}.c-icon-qa-empty,.c-icon-safeguard,.c-icon-register-empty,.c-icon-zan,.c-icon-location,.c-icon-warning,.c-icon-doc,.c-icon-xls,.c-icon-ppt,.c-icon-pdf,.c-icon-txt,.c-icon-play-black,.c-icon-gift,.c-icon-baidu-share,.c-icon-bear,.c-icon-sfda,.c-icon-bear-border,.c-icon-location-blue,.c-icon-hotAirBall,.c-icon-moon,.c-icon-streetMap,.c-icon-mv,.c-icon-zhidao-s{width:16px;height:16px}.c-icon-bear-circle,.c-icon-warning-circle,.c-icon-warning-triangle,.c-icon-warning-circle-gray{width:18px;height:18px}.c-icon-tieba,.c-icon-zhidao,.c-icon-bear-p,.c-icon-bear-pn{width:24px;height:24px}.c-icon-ball-blue,.c-icon-ball-red{width:38px;height:38px}.c-icon-unfold:hover,.c-icon-fold:hover,.c-icon-chevron-unfold:hover,.c-icon-chevron-fold:hover,.c-icon-download:hover,.c-icon-lyric:hover,.c-icon-v:hover,.c-icon-hui:hover,.c-icon-bao:hover,.c-icon-person:hover,.c-icon-high-v:hover,.c-icon-phone:hover,.c-icon-nuo:hover,.c-icon-med:hover,.c-icon-air:hover,.c-icon-share2:hover,.c-icon-v1:hover,.c-icon-v2:hover,.c-icon-v3:hover,.c-icon-write:hover{border-color:#388bff}.c-icon-unfold:active,.c-icon-fold:active,.c-icon-chevron-unfold:active,.c-icon-chevron-fold:active,.c-icon-download:active,.c-icon-lyric:active,.c-icon-v:active,.c-icon-hui:active,.c-icon-bao:active,.c-icon-person:active,.c-icon-high-v:active,.c-icon-phone:active,.c-icon-nuo:active,.c-icon-med:active,.c-icon-air:active,.c-icon-share2:active,.c-icon-v1:active,.c-icon-v2:active,.c-icon-v3:active,.c-icon-write:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold,.c-icon-download,.c-icon-lyric{border:1px solid #d8d8d8;cursor:pointer}.c-icon-v,.c-icon-hui,.c-icon-bao,.c-icon-person,.c-icon-high-v,.c-icon-phone,.c-icon-nuo,.c-icon-med,.c-icon-air,.c-icon-share2,.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-write{border:1px solid #d8d8d8;cursor:pointer;border-color:transparent;_border-color:#ff6347;_filter:chroma(color=#ff6347)}.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-v1-noborder,.c-icon-v2-noborder,.c-icon-v3-noborder,.c-icon-v1-noborder-disable,.c-icon-v2-noborder-disable,.c-icon-v3-noborder-disable{width:19px}.c-icon-download,.c-icon-lyric{width:16px;height:16px}.c-icon-play-circle,.c-icon-stop-circle{width:18px;height:18px}.c-icon-play-circle-middle,.c-icon-stop-circle-middle{width:24px;height:24px}.c-icon-play-black-large,.c-icon-stop-black-large{width:38px;height:38px}.c-icon-flag{background-position:0 -144px}.c-icon-bus{background-position:-24px -144px}.c-icon-calendar{background-position:-48px -144px}.c-icon-street{background-position:-72px -144px}.c-icon-map{background-position:-96px -144px}.c-icon-bag{background-position:-120px -144px}.c-icon-money{background-position:-144px -144px}.c-icon-game{background-position:-168px -144px}.c-icon-user{background-position:-192px -144px}.c-icon-globe{background-position:-216px -144px}.c-icon-lock{background-position:-240px -144px}.c-icon-plane{background-position:-264px -144px}.c-icon-list{background-position:-288px -144px}.c-icon-star-gray{background-position:-312px -144px}.c-icon-circle-gray{background-position:-384px -144px}.c-icon-triangle-down{background-position:-408px -144px}.c-icon-triangle-up{background-position:-432px -144px}.c-icon-triangle-up-empty{background-position:-456px -144px}.c-icon-sort-gray{background-position:-480px -144px}.c-icon-sort-up{background-position:-504px -144px}.c-icon-sort-down{background-position:-528px -144px}.c-icon-down-gray{background-position:-552px -144px}.c-icon-up-gray{background-position:-576px -144px}.c-icon-download-noborder{background-position:-600px -144px}.c-icon-lyric-noborder{background-position:-624px -144px}.c-icon-download-white{background-position:-648px -144px}.c-icon-close{background-position:-672px -144px}.c-icon-fail{background-position:-696px -144px}.c-icon-success{background-position:-720px -144px}.c-icon-triangle-down-g{background-position:-744px -144px}.c-icon-refresh{background-position:-768px -144px}.c-icon-chevron-left-gray{background-position:-816px -144px}.c-icon-chevron-right-gray{background-position:-840px -144px}.c-icon-fullscreen{background-position:0 -168px}.c-icon-safe{background-position:-24px -168px}.c-icon-exchange{background-position:-48px -168px}.c-icon-chevron-bottom{background-position:-72px -168px}.c-icon-chevron-top{background-position:-96px -168px}.c-icon-unfold{background-position:-120px -168px}.c-icon-fold{background-position:-144px -168px}.c-icon-chevron-unfold{background-position:-168px -168px}.c-icon-qa{background-position:-192px -168px}.c-icon-register{background-position:-216px -168px}.c-icon-star{background-position:-240px -168px}.c-icon-star-gray{position:relative}.c-icon-star-gray .c-icon-star{position:absolute;top:0;left:0}.c-icon-play-blue{background-position:-312px -168px}.c-icon-pic{width:16px;background-position:-336px -168px}.c-icon-chevron-fold{background-position:-360px -168px}.c-icon-video{width:18px;background-position:-384px -168px}.c-icon-circle-blue{background-position:-408px -168px}.c-icon-circle-yellow{background-position:-432px -168px}.c-icon-play-white{background-position:-456px -168px}.c-icon-triangle-down-blue{background-position:-480px -168px}.c-icon-chevron-unfold2{background-position:-504px -168px}.c-icon-right{background-position:-528px -168px}.c-icon-right-empty{background-position:-552px -168px}.c-icon-new-corner{width:15px;background-position:-576px -168px}.c-icon-horn{background-position:-600px -168px}.c-icon-right-large{width:18px;background-position:-624px -168px}.c-icon-wrong-large{background-position:-648px -168px}.c-icon-circle-blue-s{background-position:-672px -168px}.c-icon-play-gray{background-position:-696px -168px}.c-icon-up{background-position:-720px -168px}.c-icon-down{background-position:-744px -168px}.c-icon-stable{background-position:-768px -168px}.c-icon-calendar-blue{background-position:-792px -168px}.c-icon-triangle-down-blue2{background-position:-816px -168px}.c-icon-triangle-up-blue2{background-position:-840px -168px}.c-icon-down-blue{background-position:-864px -168px}.c-icon-up-blue{background-position:-888px -168px}.c-icon-ting{background-position:-912px -168px}.c-icon-piao{background-position:-936px -168px}.c-icon-wrong-empty{background-position:-960px -168px}.c-icon-warning-circle-s{background-position:-984px -168px}.c-icon-chevron-left{background-position:-1008px -168px}.c-icon-chevron-right{background-position:-1032px -168px}.c-icon-v,.c-icon-v-noborder{background-position:0 -192px}.c-icon-hui{background-position:-24px -192px}.c-icon-bao{background-position:-48px -192px}.c-icon-phone{background-position:-72px -192px}.c-icon-qa-empty{background-position:-96px -192px}.c-icon-safeguard{background-position:-120px -192px}.c-icon-register-empty{background-position:-144px -192px}.c-icon-zan{background-position:-168px -192px}.c-icon-location{background-position:-240px -192px}.c-icon-warning{background-position:-264px -192px}.c-icon-doc{background-position:-288px -192px}.c-icon-xls{background-position:-312px -192px}.c-icon-ppt{background-position:-336px -192px}.c-icon-pdf{background-position:-360px -192px}.c-icon-txt{background-position:-384px -192px}.c-icon-play-black{background-position:-408px -192px}.c-icon-play-black:hover{background-position:-432px -192px}.c-icon-gift{background-position:-456px -192px}.c-icon-baidu-share{background-position:-480px -192px}.c-icon-bear{background-position:-504px -192px}.c-icon-sfda{width:31px;background-position:-528px -192px}.c-icon-bear-border{background-position:-576px -192px}.c-icon-person,.c-icon-person-noborder{background-position:-600px -192px}.c-icon-location-blue{background-position:-624px -192px}.c-icon-hotAirBall{background-position:-648px -192px}.c-icon-moon{background-position:-672px -192px}.c-icon-streetMap{background-position:-696px -192px}.c-icon-high-v,.c-icon-high-v-noborder{background-position:-720px -192px}.c-icon-nuo{background-position:-744px -192px}.c-icon-mv{background-position:-768px -192px}.c-icon-med{background-position:-816px -192px}.c-icon-air{background-position:-840px -192px}.c-icon-share2{background-position:-864px -192px}.c-icon-v1,.c-icon-v1-noborder{background-position:-888px -192px}.c-icon-v2,.c-icon-v2-noborder{background-position:-912px -192px}.c-icon-v3,.c-icon-v3-noborder{background-position:-936px -192px}.c-icon-v1-noborder-disable{background-position:-960px -192px}.c-icon-v2-noborder-disable{background-position:-984px -192px}.c-icon-v3-noborder-disable{background-position:-1008px -192px}.c-icon-write{background-position:-1032px -192px}.c-icon-zhidao-s{background-position:-1056px -192px}.c-icon-bear-circle{background-position:0 -216px}.c-icon-warning-circle{background-position:-24px -216px}.c-icon-warning-triangle{width:24px;background-position:-48px -216px}.c-icon-warning-circle-gray{background-position:-72px -216px}.c-icon-ball-red{background-position:0 -240px}.c-icon-ball-blue{background-position:-48px -240px}.c-icon-tieba{background-position:0 -288px}.c-icon-zhidao{background-position:-48px -288px}.c-icon-bear-p{background-position:-96px -288px}.c-icon-bear-pn{background-position:-144px -288px}.c-icon-download{background-position:0 -336px}.c-icon-lyric{background-position:-24px -336px}.c-icon-play-circle{background-position:-48px -336px}.c-icon-play-circle:hover{background-position:-72px -336px}.c-icon-stop-circle{background-position:-96px -336px}.c-icon-stop-circle:hover{background-position:-120px -336px}.c-icon-play-circle-middle{background-position:0 -360px}.c-icon-play-circle-middle:hover{background-position:-48px -360px}.c-icon-stop-circle-middle{background-position:-96px -360px}.c-icon-stop-circle-middle:hover{background-position:-144px -360px}.c-icon-play-black-large{background-position:0 -408px}.c-icon-play-black-large:hover{background-position:-48px -408px}.c-icon-stop-black-large{background-position:-96px -408px}.c-icon-stop-black-large:hover{background-position:-144px -408px}.c-text{display:inline-block;padding:2px;text-align:center;vertical-align:text-bottom;font-size:12px;line-height:100%;font-style:normal;color:#fff;overflow:hidden}a.c-text{text-decoration:none}.c-text-new{background-color:#f13f40}.c-text-info{padding-left:0;padding-right:0;font-weight:bold;color:#2b99ff;*vertical-align:baseline;_position:relative;_top:2px}.c-text-info b{_position:relative;_top:-1px}.c-text-info span{padding:0 2px;font-weight:normal}.c-text-important{background-color:#1cb7fd}.c-text-public{background-color:#2b99ff}.c-text-warning{background-color:#ff830f}.c-text-prompt{background-color:#f5c537}.c-text-danger{background-color:#f13f40}.c-text-safe{background-color:#52c277}.c-text-empty{padding-top:1px;padding-bottom:1px;border:1px solid #d8d8d8;cursor:pointer;color:#23b9fd;background-color:#fff}.c-text-empty:hover{border-color:#388bff}.c-text-empty:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-text-mult{padding-left:5px;padding-right:5px}<\/style>
";result_aladdin_css=$(result_aladdin_css);result_aladdin_css.attr("data-for","result");var result_sug_css="<style>
.bdsug{position:absolute;width:536px;background:#fff;display:none;border:1px solid #817f82}.bdsug li{width:520px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#ebebeb}#form .bdsug{top:31px}#search form{position:relative}#search form .bdsug{bottom:33px}.bdsug-store span,.bdsug-store b{color:#7a77c8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(http:\/\/www.baidu.com\/img\/sug_bd.png) no-repeat left center;margin:6px 0 4px 0;font-size:12px;font-weight:normal;color:#7b7b7b;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:bold;padding-left:20px}<\/style>
";result_sug_css=$(result_sug_css);result_sug_css.attr("data-for","sug");var index_content = $(#content);var index_foot= $(#ftCon);var index_css= $(head [index]);var index_u= $(#u1);var result_u= $(#u);var wrapper=$("#wrapper");window.index_on=function(){index_css.insertAfter("meta:eq(0)");result_common_css.remove();result_aladdin_css.remove();result_sug_css.remove();index_content.show();index_foot.show();index_u.show();result_u.hide();wrapper.show();if(bds.su&&bds.su.U&&bds.su.U.homeInit){bds.su.U.homeInit();}setTimeout(function(){try{$(#kw1).get(0).focus();window.sugIndex.start();}catch(e){}},0);if(typeof initIndex==function){initIndex();}};window.index_off=function(){index_css.remove();index_content.hide();index_foot.hide();index_u.hide();result_u.show();result_aladdin_css.insertAfter("meta:eq(0)");result_common_css.insertAfter("meta:eq(0)");result_sug_css.insertAfter("meta:eq(0)");wrapper.show();};})();</script>
<script type="text/javascript" src="http://s1.bdstatic.com/r/www/cache/static/global/js/all_async_2519bbc5.js">
</script>
<script>
initPreload();$("#u,#u1").delegate("#lb",click,function(){try{bds.se.login.open();}catch(e){}});if(navigator.cookieEnabled){document.cookie="NOJS=;expires=Sat, 01 Jan 2000 00:00:00 GMT";}</script>
<script>
(function(){var _init=false;window.initIndex=function(){if(_init){return;}_init=true;var w=window,d=document,n=navigator,k=d.f1.wd,a=d.getElementById("nv").getElementsByTagName("a"),isIE=n.userAgent.indexOf("MSIE")!=-1&&!window.opera;(function(){if(/q=([^&]+)/.test(location.search)){k.value=decodeURIComponent(RegExp["\x241"])}})();(function(){var u = G("u1").getElementsByTagName("a"), nv = G("nv").getElementsByTagName("a"), lk = G("lk").getElementsByTagName("a"), un = "";var tj_nv = ["news","tieba","zhidao","mp3","img","video","map"];var tj_lk = ["baike","wenku","hao123","more"];un = bds.comm.user == "" ? "" : bds.comm.user;function _addTJ(obj){addEV(obj, "mousedown", function(e){var e = e || window.event;var target = e.target || e.srcElement;if(target.name){ns_c({fm:behs,tab:target.name,un:encodeURIComponent(un)});}});}for(var i = 0; i < u.length; i++){_addTJ(u[i]);}for(var i = 0; i < nv.length; i++){nv[i].name = tj_ + tj_nv[i];}for(var i = 0; i < lk.length; i++){lk[i].name = tj_ + tj_lk[i];}})();(function() {var links = {tj_news: [word, http://news.baidu.com/ns?tn=news&cl=2&rn=20&ct=1&ie=utf-8],tj_tieba: [kw, http://tieba.baidu.com/f?ie=utf-8],tj_zhidao: [word, http://zhidao.baidu.com/search?pn=0&rn=10&lm=0],tj_mp3: [key, http://music.baidu.com/search?fr=ps&ie=utf-8],tj_img: [word, http://image.baidu.com/i?ct=201326592&cl=2&nc=1&lm=-1&st=-1&tn=baiduimage&istype=2&fm=&pv=&z=0&ie=utf-8],tj_video: [word, http://video.baidu.com/v?ct=301989888&s=25&ie=utf-8],tj_map: [wd, http://map.baidu.com/?newmap=1&ie=utf-8&s=s],tj_baike: [word, http://baike.baidu.com/search/word?pic=1&sug=1&enc=utf8],tj_wenku: [word, http://wenku.baidu.com/search?ie=utf-8]};var domArr = [G(nv), G(lk),G(cp)],kw = G(kw1);for (var i = 0, l = domArr.length; i < l; i++) {domArr[i].onmousedown = function(e) {e = e || window.event;var target = e.target || e.srcElement,name = target.getAttribute(name),items = links[name],reg = new RegExp(^\\s+|\\s+\x24),key = kw.value.replace(reg, ‘‘);if (items) {if (key.length >
 0) {var wd = items[0], url = items[1],url = url + ( name === tj_map ? encodeURIComponent(& + wd + = + key) : ( ( url.indexOf(?) >
 0 ? & : ? ) + wd + = + encodeURIComponent(key) ) );target.href = url;} else {target.href = target.href.match(new RegExp(^http:\/\/.+\.baidu\.com))[0];}}name && ns_c({fm: behs,tab: name,query: encodeURIComponent(key),un: encodeURIComponent(bds.comm.user || ‘‘) });};}})();};if(window.pageState==0){initIndex();}})();</script>
</body>
</html>


Process finished with exit code 0

 

只要关注没有乱码就可以了。

输出的结果用浏览器解析后的结果:

页面上方输出的是控制台的打印消息,不是服务器响应的数据。

本文结束,更多好文请见:http://www.cnblogs.com/kodoyang/