<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>零叶亭</title>
	<atom:link href="http://www.lingye.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lingye.net/blog</link>
	<description>web开发</description>
	<lastBuildDate>Sat, 05 Jun 2010 09:17:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>js的无限级菜单</title>
		<link>http://www.lingye.net/blog/2010/06/js-automenu/</link>
		<comments>http://www.lingye.net/blog/2010/06/js-automenu/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:42:09 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=135</guid>
		<description><![CDATA[以下实现，理论上讲是可以无限的，没有测具体到哪个级别会出问题
数据库有一个类表，
字段说明如下：
id:类id
fid:父类id
lid:所属层级
cname:名称
通过程序输出职下数据：

var menuarr=[
	[&#34;菜单一&#34;,1,0,0],
	[&#34;菜单二&#34;,2,0,0],
	[&#34;菜单三&#34;,3,5,0],
	[&#34;菜单四&#34;,4,1,1],
	[&#34;菜单五&#34;,5,1,1],
	[&#34;菜单六&#34;,6,2,1],
	[&#34;菜单七&#34;,7,4,2],
	[&#34;菜单八&#34;,8,3,1],
	[&#34;菜单九&#34;,9,5,2],
	[&#34;菜单十&#34;,10,4,2],
	[&#34;菜单十一&#34;,11,4,2]
];

即：[类名,类id,父id,层级]

用js来生成一个按层级展示的菜单项
以下为简单的实现：

var menuarr=[
	[&#34;菜单一&#34;,1,0,0],
	[&#34;菜单二&#34;,2,0,0],
	[&#34;菜单三&#34;,3,5,0],
	[&#34;菜单四&#34;,4,1,1],
	[&#34;菜单五&#34;,5,1,1],
	[&#34;菜单六&#34;,6,2,1],
	[&#34;菜单七&#34;,7,4,2],
	[&#34;菜单八&#34;,8,3,1],
	[&#34;菜单九&#34;,9,5,2],
	[&#34;菜单十&#34;,10,4,2],
	[&#34;菜单十一&#34;,11,4,2],
];
function SortMenu(a,b){
	return a[3]-b[3];
}
function AutoMenu(arr){
	if(arr.length&#62;0){
		//按层级排序(升序)
		arr.sort(SortMenu);
		var i=0;
		var lid=0,fid=0;
		SetHTML(&#34;nav&#34;,'&#60;ul id=&#34;menulist&#34;&#62;&#60;/ul&#62;')
		while(i&#60;arr.length){
			if(arr[i]){
			cname=arr[i][0];
			id=arr[i][1];
			fid=arr[i][2];
			lid=arr[i][3];}
			else{return;}
			if(lid&#62;0 &#38;&#38; fid&#62;0){
				if($id(&#34;menu-&#34;+fid+&#34;-list&#34;)==null){
					AddHTML(&#34;menu-&#34;+fid,'&#60;ul id=&#34;menu-'+fid+'-list&#34;&#62;&#60;li id=&#34;menu-'+id+'&#34;&#62;&#60;a href=&#34;#&#34;&#62;'+cname+'&#60;/a&#62;&#60;/li&#62;&#60;/ul&#62;');
				}
				else{
					AddHTML(&#34;menu-&#34;+fid+&#34;-list&#34;,'&#60;li id=&#34;menu-'+id+'&#34;&#62;&#60;a href=&#34;#&#34;&#62;'+cname+'&#60;/a&#62;&#60;/li&#62;');
				}
			}else{
				AddHTML(&#34;menulist&#34;,'&#60;li id=&#34;menu-'+id+'&#34;&#62;&#60;a href=&#34;#&#34;&#62;'+cname+'&#60;/a&#62;&#60;/li&#62;');
			}
			i++;
		}
	}
}
function $id(id){
	return document.getElementById(id);
}
function AddHTML(id,h){
	if($id(id)) $id(id).innerHTML+=h;
}
function SetHTML(id,h){
	if($id(id)) $id(id).innerHTML=h;
}

效果见：http://www.lingye.net/demo/automenu/
增加些css及一些简单的事件：

&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62;
&#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62;
&#60;head&#62;
&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;
&#60;title&#62;无标题文档&#60;/title&#62;
&#60;script type=&#34;text/javascript&#34;&#62;
var menuarr=[
	[&#34;菜单一&#34;,1,0,0],
	[&#34;菜单二&#34;,2,0,0],
	[&#34;菜单三&#34;,3,5,0],
	[&#34;菜单四&#34;,4,1,1],
	[&#34;菜单五&#34;,5,1,1],
	[&#34;菜单六&#34;,6,2,1],
	[&#34;菜单七&#34;,7,4,2],
	[&#34;菜单八&#34;,8,3,1],
	[&#34;菜单九&#34;,9,5,2],
	[&#34;菜单十&#34;,10,4,2],
	[&#34;菜单十一&#34;,11,4,2],
];
function SortMenu(a,b){
	return a[3]-b[3];
}
function AutoMenu(arr){
	if(arr.length&#62;0){
		//按层级排序(升序)
		arr.sort(SortMenu);
		var i=0;
		var lid=0,fid=0;
		SetHTML(&#34;nav&#34;,'&#60;ul id=&#34;menulist&#34;&#62;&#60;/ul&#62;')
		while(i&#60;arr.length){
			if(arr[i]){
			cname=arr[i][0];
			id=arr[i][1];
			fid=arr[i][2];
			lid=arr[i][3];}
			else{return;}
			if(lid&#62;0 &#38;&#38; fid&#62;0){
				if($id(&#34;menu-&#34;+fid+&#34;-list&#34;)==null){
					$id(&#34;menu-&#34;+fid).className+=&#34; hasc&#34;;
					$id(&#34;menu-&#34;+fid).onmouseover=showchild;
					$id(&#34;menu-&#34;+fid).onmouseout=hidechild;
					AddHTML(&#34;menu-&#34;+fid,'&#60;ul id=&#34;menu-'+fid+'-list&#34; class=&#34;c-list&#34;&#62;&#60;li class=&#34;cli&#34; id=&#34;menu-'+id+'&#34;&#62;&#60;a href=&#34;#&#34;&#62;'+getspan(lid)+cname+'&#60;/a&#62;&#60;/li&#62;&#60;/ul&#62;');
				}
				else{
					AddHTML(&#34;menu-&#34;+fid+&#34;-list&#34;,'&#60;li class=&#34;cli&#34; id=&#34;menu-'+id+'&#34;&#62;&#60;a href=&#34;#&#34;&#62;'+getspan(lid)+cname+'&#60;/a&#62;&#60;/li&#62;');
				}
			}else{
				AddHTML(&#34;menulist&#34;,'&#60;li [...]]]></description>
			<content:encoded><![CDATA[<h2>以下实现，理论上讲是可以无限的，没有测具体到哪个级别会出问题</h2>
<p>数据库有一个类表，<br />
字段说明如下：<br />
id:类id<br />
fid:父类id<br />
lid:所属层级<br />
cname:名称</p>
<p>通过程序输出职下数据：</p>
<pre class="brush: jscript;">
var menuarr=[
	[&quot;菜单一&quot;,1,0,0],
	[&quot;菜单二&quot;,2,0,0],
	[&quot;菜单三&quot;,3,5,0],
	[&quot;菜单四&quot;,4,1,1],
	[&quot;菜单五&quot;,5,1,1],
	[&quot;菜单六&quot;,6,2,1],
	[&quot;菜单七&quot;,7,4,2],
	[&quot;菜单八&quot;,8,3,1],
	[&quot;菜单九&quot;,9,5,2],
	[&quot;菜单十&quot;,10,4,2],
	[&quot;菜单十一&quot;,11,4,2]
];
</pre>
<p>即：[类名,类id,父id,层级]<br />
<span id="more-135"></span><br />
用js来生成一个按层级展示的菜单项<br />
以下为简单的实现：</p>
<pre class="brush: jscript;">
var menuarr=[
	[&quot;菜单一&quot;,1,0,0],
	[&quot;菜单二&quot;,2,0,0],
	[&quot;菜单三&quot;,3,5,0],
	[&quot;菜单四&quot;,4,1,1],
	[&quot;菜单五&quot;,5,1,1],
	[&quot;菜单六&quot;,6,2,1],
	[&quot;菜单七&quot;,7,4,2],
	[&quot;菜单八&quot;,8,3,1],
	[&quot;菜单九&quot;,9,5,2],
	[&quot;菜单十&quot;,10,4,2],
	[&quot;菜单十一&quot;,11,4,2],
];
function SortMenu(a,b){
	return a[3]-b[3];
}
function AutoMenu(arr){
	if(arr.length&gt;0){
		//按层级排序(升序)
		arr.sort(SortMenu);
		var i=0;
		var lid=0,fid=0;
		SetHTML(&quot;nav&quot;,'&lt;ul id=&quot;menulist&quot;&gt;&lt;/ul&gt;')
		while(i&lt;arr.length){
			if(arr[i]){
			cname=arr[i][0];
			id=arr[i][1];
			fid=arr[i][2];
			lid=arr[i][3];}
			else{return;}
			if(lid&gt;0 &amp;&amp; fid&gt;0){
				if($id(&quot;menu-&quot;+fid+&quot;-list&quot;)==null){
					AddHTML(&quot;menu-&quot;+fid,'&lt;ul id=&quot;menu-'+fid+'-list&quot;&gt;&lt;li id=&quot;menu-'+id+'&quot;&gt;&lt;a href=&quot;#&quot;&gt;'+cname+'&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;');
				}
				else{
					AddHTML(&quot;menu-&quot;+fid+&quot;-list&quot;,'&lt;li id=&quot;menu-'+id+'&quot;&gt;&lt;a href=&quot;#&quot;&gt;'+cname+'&lt;/a&gt;&lt;/li&gt;');
				}
			}else{
				AddHTML(&quot;menulist&quot;,'&lt;li id=&quot;menu-'+id+'&quot;&gt;&lt;a href=&quot;#&quot;&gt;'+cname+'&lt;/a&gt;&lt;/li&gt;');
			}
			i++;
		}
	}
}
function $id(id){
	return document.getElementById(id);
}
function AddHTML(id,h){
	if($id(id)) $id(id).innerHTML+=h;
}
function SetHTML(id,h){
	if($id(id)) $id(id).innerHTML=h;
}
</pre>
<p>效果见：<a href="http://www.lingye.net/demo/automenu/">http://www.lingye.net/demo/automenu/</a></p>
<p>增加些css及一些简单的事件：</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;无标题文档&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var menuarr=[
	[&quot;菜单一&quot;,1,0,0],
	[&quot;菜单二&quot;,2,0,0],
	[&quot;菜单三&quot;,3,5,0],
	[&quot;菜单四&quot;,4,1,1],
	[&quot;菜单五&quot;,5,1,1],
	[&quot;菜单六&quot;,6,2,1],
	[&quot;菜单七&quot;,7,4,2],
	[&quot;菜单八&quot;,8,3,1],
	[&quot;菜单九&quot;,9,5,2],
	[&quot;菜单十&quot;,10,4,2],
	[&quot;菜单十一&quot;,11,4,2],
];
function SortMenu(a,b){
	return a[3]-b[3];
}
function AutoMenu(arr){
	if(arr.length&gt;0){
		//按层级排序(升序)
		arr.sort(SortMenu);
		var i=0;
		var lid=0,fid=0;
		SetHTML(&quot;nav&quot;,'&lt;ul id=&quot;menulist&quot;&gt;&lt;/ul&gt;')
		while(i&lt;arr.length){
			if(arr[i]){
			cname=arr[i][0];
			id=arr[i][1];
			fid=arr[i][2];
			lid=arr[i][3];}
			else{return;}
			if(lid&gt;0 &amp;&amp; fid&gt;0){
				if($id(&quot;menu-&quot;+fid+&quot;-list&quot;)==null){
					$id(&quot;menu-&quot;+fid).className+=&quot; hasc&quot;;
					$id(&quot;menu-&quot;+fid).onmouseover=showchild;
					$id(&quot;menu-&quot;+fid).onmouseout=hidechild;
					AddHTML(&quot;menu-&quot;+fid,'&lt;ul id=&quot;menu-'+fid+'-list&quot; class=&quot;c-list&quot;&gt;&lt;li class=&quot;cli&quot; id=&quot;menu-'+id+'&quot;&gt;&lt;a href=&quot;#&quot;&gt;'+getspan(lid)+cname+'&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;');
				}
				else{
					AddHTML(&quot;menu-&quot;+fid+&quot;-list&quot;,'&lt;li class=&quot;cli&quot; id=&quot;menu-'+id+'&quot;&gt;&lt;a href=&quot;#&quot;&gt;'+getspan(lid)+cname+'&lt;/a&gt;&lt;/li&gt;');
				}
			}else{
				AddHTML(&quot;menulist&quot;,'&lt;li class=&quot;fli&quot; id=&quot;menu-'+id+'&quot;&gt;&lt;a href=&quot;#&quot;&gt;'+cname+'&lt;/a&gt;&lt;/li&gt;');
			}
			i++;
		}
	}
}
function getspan(l){
	s='';
	for(var i=0;i&lt;l;i++){
		s+='　';
	}
	return s+'|_';
}
function showchild(){
	tid=this.id;
	$id(tid+&quot;-list&quot;).style.display=&quot;block&quot;;
}
function hidechild(){
	tid=this.id;
	$id(tid+&quot;-list&quot;).style.display=&quot;none&quot;;
}
function $id(id){
	return document.getElementById(id);
}
function AddHTML(id,h){
	if($id(id)) $id(id).innerHTML+=h;
}
function SetHTML(id,h){
	if($id(id)) $id(id).innerHTML=h;
}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
	*{margin:0;padding:0}
	body{font-size:12px;}
	#nav{height:35px;line-height:35px;width:960px;margin:0 auto}
	#nav #menulist{list-style:none;height:30px;background:#666;padding:5px;}
	#menulist .fli{float:left;width:auto;height:auto}
	#menulist a{display:block;height:30px;width:65px;padding-left:15px;line-height:30px;text-align:left;color:#fff;
	text-decoration:none;}
	#menulist a:hover{background:#ccc;color:#333;}
	#menulist .c-list{display:none;width:auto;height:auto}
	#menulist .c-list a{width:auto;}
	#menulist .hasc{background:url(down.gif) bottom right no-repeat;}
	#menulist .c-list {background:#666;list-style:none;}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id=&quot;nav&quot;&gt;

&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
AutoMenu(menuarr);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>效果见：<a href="http://www.lingye.net/demo/automenu/index-css.html">http://www.lingye.net/demo/automenu/index-css.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/06/js-automenu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一些获取数据的地方</title>
		<link>http://www.lingye.net/blog/2010/06/get_data_url/</link>
		<comments>http://www.lingye.net/blog/2010/06/get_data_url/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 03:49:38 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=126</guid>
		<description><![CDATA[http://www.webxml.com.cn/
提供以下服务：



400个国内外主要城市天气预报Web服务
 


IP地址来源搜索 WEB 服务（是目前最完整的IP地址数据）
 


随机英文、数字和中文简体字 WEB 服务
 


中国邮政编码 &#60;-&#62; 地址信息双向查询/搜索 WEB 服务
 


验证码图片 WEB 服务 支持中文、字母、数字
 


Email 电子邮件地址验证 WEB 服务
 


中文简体字&#60;-&#62;繁体字转换 WEB 服务
 


中文 &#60;-&#62; 英文双向翻译 WEB 服务
 


火车时刻表 WEB 服务 （第六次提速最新列车时刻表）
 


中国股票行情数据 WEB 服务（支持深圳和上海股市的基金、债券和股票）
 


即时外汇汇率数据 WEB 服务
 


腾讯QQ在线状态 WEB 服务
 


中国电视节目预告（电视节目表） WEB 服务
 


外汇-人民币即时报价 WEB 服务
 


中国股票行情分时走势预览缩略图 WEB 服务
 


国内飞机航班时刻表 WEB 服务
 


中国开放式基金数据 WEB 服务
 


股票行情数据 WEB 服务（支持香港、深圳、上海基金、债券和股票；支持多股票同时查询）
 


2500多个城市天气预报 WEB服务
 


国内手机号码归属地查询WEB服务
 


[新] 中文&#60;-&#62;英文双向翻译WEB服务
 



 
http://api.liqwei.com/
提供的服务有：



实用号码归属地查询(IP 地址，手机号码)：


默认格式：
http://api.liqwei.com/location/ (使用来访者的 IP 地址)


指定 IP 地址格式：
http://api.liqwei.com/location/?ip=202.108.33.32 (新浪的IP)


指定手机号码格式：
http://api.liqwei.com/location/?mobile=13800138000 (北京的号码)


可选参数：
js:【js 输出】，默认为 0，可选值：1，0


备注：
UTF-8 编码支持的格式：http://api.liqwei.com/location/utf8/ [...]]]></description>
			<content:encoded><![CDATA[<h2><a href="http://www.webxml.com.cn/">http://www.webxml.com.cn/</a></h2>
<p>提供以下服务：</p>
<table border="0" cellspacing="1" cellpadding="2" width="100%">
<tbody>
<tr>
<td><a id="R1_ctl00_ServiceName" title="点击获得详细信息 400个国内外主要城市天气预报Web服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=494536374B66307964534D3D">400个国内外主要城市天气预报Web服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl01_ServiceName" title="点击获得详细信息 IP地址来源搜索 WEB 服务（是目前最完整的IP地址数据）" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=56647553443555386D2F4D3D">IP地址来源搜索 WEB 服务（是目前最完整的IP地址数据）</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl02_ServiceName" title="点击获得详细信息 随机英文、数字和中文简体字 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=45683343614D6F687033673D">随机英文、数字和中文简体字 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl03_ServiceName" title="点击获得详细信息 中国邮政编码 &lt;-&gt; 地址信息双向查询/搜索 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=56647553443555386D2F4D3D">中国邮政编码 &lt;-&gt; 地址信息双向查询/搜索 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl04_ServiceName" title="点击获得详细信息 验证码图片 WEB 服务 支持中文、字母、数字" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=56446356525874693045553D">验证码图片 WEB 服务 支持中文、字母、数字</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl05_ServiceName" title="点击获得详细信息 Email 电子邮件地址验证 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=776756327947797A706B413D">Email 电子邮件地址验证 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl06_ServiceName" title="点击获得详细信息 中文简体字&lt;-&gt;繁体字转换 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=7A533746736D384E38384D3D">中文简体字&lt;-&gt;繁体字转换 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl07_ServiceName" title="点击获得详细信息 中文 &lt;-&gt; 英文双向翻译 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=56647553443555386D2F4D3D">中文 &lt;-&gt; 英文双向翻译 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl08_ServiceName" title="点击获得详细信息 火车时刻表 WEB 服务 （第六次提速最新列车时刻表）" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=494536374B66307964534D3D">火车时刻表 WEB 服务 （第六次提速最新列车时刻表）</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl09_ServiceName" title="点击获得详细信息 中国股票行情数据 WEB 服务（支持深圳和上海股市的基金、债券和股票）" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=663855616669356D4479673D">中国股票行情数据 WEB 服务（支持深圳和上海股市的基金、债券和股票）</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl10_ServiceName" title="点击获得详细信息 即时外汇汇率数据 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=663855616669356D4479673D">即时外汇汇率数据 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl11_ServiceName" title="点击获得详细信息 腾讯QQ在线状态 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=776756327947797A706B413D">腾讯QQ在线状态 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl12_ServiceName" title="点击获得详细信息 中国电视节目预告（电视节目表） WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=494536374B66307964534D3D">中国电视节目预告（电视节目表） WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl13_ServiceName" title="点击获得详细信息 外汇-人民币即时报价 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=663855616669356D4479673D">外汇-人民币即时报价 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl14_ServiceName" title="点击获得详细信息 中国股票行情分时走势预览缩略图 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=663855616669356D4479673D">中国股票行情分时走势预览缩略图 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl15_ServiceName" title="点击获得详细信息 国内飞机航班时刻表 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=494536374B66307964534D3D">国内飞机航班时刻表 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl16_ServiceName" title="点击获得详细信息 中国开放式基金数据 WEB 服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=663855616669356D4479673D">中国开放式基金数据 WEB 服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl17_ServiceName" title="点击获得详细信息 股票行情数据 WEB 服务（支持香港、深圳、上海基金、债券和股票；支持多股票同时查询）" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=663855616669356D4479673D">股票行情数据 WEB 服务（支持香港、深圳、上海基金、债券和股票；支持多股票同时查询）</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl18_ServiceName" title="点击获得详细信息 2500多个城市天气预报 WEB服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=494536374B66307964534D3D">2500多个城市天气预报 WEB服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl19_ServiceName" title="点击获得详细信息 国内手机号码归属地查询WEB服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=776756327947797A706B413D">国内手机号码归属地查询WEB服务</a></td>
<td align="center"> </td>
</tr>
<tr>
<td><a id="R1_ctl20_ServiceName" title="点击获得详细信息 [新] 中文&lt;-&gt;英文双向翻译WEB服务" href="http://www.webxml.com.cn/zh_cn/web_services_item.aspx?id=56647553443555386D2F4D3D">[新] 中文&lt;-&gt;英文双向翻译WEB服务</a></td>
<td align="center"> </td>
</tr>
</tbody>
</table>
<p> </p>
<h2>http://api.liqwei.com/</h2>
<p>提供的服务有：</p>
<table border="0" cellspacing="0" cellpadding="0" width="96%" align="center">
<tbody>
<tr>
<td colspan="2" height="30">实用号码归属地查询(IP 地址，手机号码)：</td>
</tr>
<tr>
<td height="30" align="right">默认格式：</td>
<td height="30"><a href="http://api.liqwei.com/location/">http://api.liqwei.com/location/</a> (使用来访者的 IP 地址)</td>
</tr>
<tr>
<td width="25%" height="30" align="right">指定 IP 地址格式：</td>
<td height="30"><a href="http://api.liqwei.com/location/?ip=202.108.33.32">http://api.liqwei.com/location/?ip=202.108.33.32</a> (新浪的IP)</td>
</tr>
<tr>
<td height="30" align="right">指定手机号码格式：</td>
<td height="30"><a href="http://api.liqwei.com/location/?mobile=13800138000">http://api.liqwei.com/location/?mobile=13800138000</a> (北京的号码)</td>
</tr>
<tr>
<td height="30" align="right">可选参数：</td>
<td height="30">js:【js 输出】，默认为 0，可选值：1，0</td>
</tr>
<tr>
<td height="30" align="right">备注：</td>
<td height="30">UTF-8 编码支持的格式：<a href="http://api.liqwei.com/location/utf8/">http://api.liqwei.com/location/utf8/</a> 其它参数不变；</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="96%" align="center">
<tbody>
<tr>
<td colspan="2" height="30">城市天气情况查询：</td>
</tr>
<tr>
<td width="25%" height="30" align="right">默认格式：</td>
<td><a href="http://api.liqwei.com/weather/">http://api.liqwei.com/weather/</a> (使用来访者的 IP 地址)</td>
</tr>
<tr>
<td height="30" align="right">指定 IP 地址格式：</td>
<td height="30"><a href="http://api.liqwei.com/weather/?ip=202.108.33.32">http://api.liqwei.com/weather/?ip=202.108.33.32</a> (新浪的IP)</td>
</tr>
<tr>
<td height="30" align="right">指定手机号码格式：</td>
<td height="30"><a href="http://api.liqwei.com/weather/?mobile=13800138000">http://api.liqwei.com/weather/?mobile=13800138000</a></td>
</tr>
<tr>
<td height="30" align="right">指定城市名称格式：</td>
<td height="30"><a href="http://api.liqwei.com/weather/?city=北京">http://api.liqwei.com/weather/?city=北京</a></td>
</tr>
</tbody>
</table>
<p><span id="more-126"></span><br />
<br/><br />
除以下还有很多，可以链过去看下</p>
<h2>另一个获取天气数据的地方：<a href="http://m.weather.com.cn/data/101010300.html">http://m.weather.com.cn/data/101010300.html</a></h2>
<p>其中　101010300　为地区码，返回JSON数据</p>
<p>关于地区对应的地区码：</p>
<pre class="brush: jscript;">
var CityArr = [
[&quot;CategoryName&quot;,&quot;ParentId&quot;,&quot;Id&quot;],
[&quot;华北地区&quot;,&quot;0&quot;,&quot;1&quot;],
[&quot;北京&quot;,&quot;1&quot;,&quot;109&quot;],
[&quot;北京&quot;,&quot;109&quot;,&quot;101010100&quot;,&quot;B&quot;],
[&quot;天津&quot;,&quot;1&quot;,&quot;110&quot;],
[&quot;天津&quot;,&quot;110&quot;,&quot;101030100&quot;,&quot;T&quot;],
[&quot;河北&quot;,&quot;1&quot;,&quot;111&quot;],
[&quot;石家庄&quot;,&quot;111&quot;,&quot;101090101&quot;,&quot;S&quot;],
[&quot;保定&quot;,&quot;111&quot;,&quot;101090201&quot;,&quot;B&quot;],
[&quot;承德市&quot;,&quot;111&quot;,&quot;101090402&quot;,&quot;C&quot;],
[&quot;沧州&quot;,&quot;111&quot;,&quot;101090701&quot;,&quot;C&quot;],
[&quot;衡水&quot;,&quot;111&quot;,&quot;101090801&quot;,&quot;H&quot;],
[&quot;邯郸&quot;,&quot;111&quot;,&quot;101091001&quot;,&quot;H&quot;],
[&quot;廊坊&quot;,&quot;111&quot;,&quot;101090601&quot;,&quot;L&quot;],
[&quot;秦皇岛&quot;,&quot;111&quot;,&quot;101091101&quot;,&quot;Q&quot;],
[&quot;唐山&quot;,&quot;111&quot;,&quot;101090501&quot;,&quot;T&quot;],
[&quot;邢台&quot;,&quot;111&quot;,&quot;101090901&quot;,&quot;X&quot;],
[&quot;张家口&quot;,&quot;111&quot;,&quot;101090301&quot;,&quot;Z&quot;],
[&quot;山西&quot;,&quot;1&quot;,&quot;112&quot;],
[&quot;太原&quot;,&quot;112&quot;,&quot;101100101&quot;,&quot;T&quot;],
[&quot;长治&quot;,&quot;112&quot;,&quot;101100501&quot;,&quot;C&quot;],
[&quot;大同&quot;,&quot;112&quot;,&quot;101100201&quot;,&quot;D&quot;],
[&quot;晋中&quot;,&quot;112&quot;,&quot;101100401&quot;,&quot;J&quot;],
[&quot;晋城&quot;,&quot;112&quot;,&quot;101100601&quot;,&quot;J&quot;],
[&quot;临汾&quot;,&quot;112&quot;,&quot;101100701&quot;,&quot;L&quot;],
[&quot;吕梁&quot;,&quot;112&quot;,&quot;101101100&quot;,&quot;L&quot;],
[&quot;忻州&quot;,&quot;112&quot;,&quot;101101001&quot;,&quot;X&quot;],
[&quot;阳泉&quot;,&quot;112&quot;,&quot;101100301&quot;,&quot;Y&quot;],
[&quot;运城&quot;,&quot;112&quot;,&quot;101100801&quot;,&quot;Y&quot;],
[&quot;朔州&quot;,&quot;112&quot;,&quot;101100901&quot;,&quot;Y&quot;],
[&quot;内蒙古&quot;,&quot;1&quot;,&quot;113&quot;],
[&quot;呼和浩特&quot;,&quot;113&quot;,&quot;101080101&quot;,&quot;H&quot;],
[&quot;阿拉善左旗&quot;,&quot;113&quot;,&quot;101081201&quot;,&quot;A&quot;],
[&quot;包头&quot;,&quot;113&quot;,&quot;101080201&quot;,&quot;B&quot;],
[&quot;赤峰&quot;,&quot;113&quot;,&quot;101080601&quot;,&quot;C&quot;],
[&quot;鄂尔多斯&quot;,&quot;113&quot;,&quot;101080701&quot;,&quot;E&quot;],
[&quot;呼伦贝尔&quot;,&quot;113&quot;,&quot;101081000&quot;,&quot;H&quot;],
[&quot;集宁&quot;,&quot;113&quot;,&quot;101080401&quot;,&quot;J&quot;],
[&quot;临河&quot;,&quot;113&quot;,&quot;101080801&quot;,&quot;L&quot;],
[&quot;通辽&quot;,&quot;113&quot;,&quot;101080501&quot;,&quot;T&quot;],
[&quot;乌海&quot;,&quot;113&quot;,&quot;101080301&quot;,&quot;W&quot;],
[&quot;乌兰浩特&quot;,&quot;113&quot;,&quot;101081101&quot;,&quot;W&quot;],
[&quot;锡林浩特&quot;,&quot;113&quot;,&quot;101080901&quot;,&quot;X&quot;],
[&quot;东北地区&quot;,&quot;0&quot;,&quot;2&quot;],
[&quot;辽宁&quot;,&quot;2&quot;,&quot;114&quot;],
[&quot;沈阳&quot;,&quot;114&quot;,&quot;101070101&quot;,&quot;S&quot;],
[&quot;鞍山&quot;,&quot;114&quot;,&quot;101070301&quot;,&quot;A&quot;],
[&quot;本溪&quot;,&quot;114&quot;,&quot;101070501&quot;,&quot;B&quot;],
[&quot;朝阳&quot;,&quot;114&quot;,&quot;101071201&quot;,&quot;C&quot;],
[&quot;大连&quot;,&quot;114&quot;,&quot;101070201&quot;,&quot;D&quot;],
[&quot;丹东&quot;,&quot;114&quot;,&quot;101070601&quot;,&quot;D&quot;],
[&quot;抚顺&quot;,&quot;114&quot;,&quot;101070401&quot;,&quot;F&quot;],
[&quot;阜新&quot;,&quot;114&quot;,&quot;101070901&quot;,&quot;F&quot;],
[&quot;葫芦岛&quot;,&quot;114&quot;,&quot;101071401&quot;,&quot;H&quot;],
[&quot;锦州&quot;,&quot;114&quot;,&quot;101070701&quot;,&quot;J&quot;],
[&quot;辽阳&quot;,&quot;114&quot;,&quot;101071001&quot;,&quot;L&quot;],
[&quot;盘锦&quot;,&quot;114&quot;,&quot;101071301&quot;,&quot;P&quot;],
[&quot;铁岭&quot;,&quot;114&quot;,&quot;101071101&quot;,&quot;T&quot;],
[&quot;营口&quot;,&quot;114&quot;,&quot;101070801&quot;,&quot;Y&quot;],
[&quot;吉林&quot;,&quot;2&quot;,&quot;115&quot;],
[&quot;长春&quot;,&quot;115&quot;,&quot;101060101&quot;,&quot;C&quot;],
[&quot;白城&quot;,&quot;115&quot;,&quot;101060601&quot;,&quot;B&quot;],
[&quot;白山&quot;,&quot;115&quot;,&quot;101060901&quot;,&quot;B&quot;],
[&quot;吉林&quot;,&quot;115&quot;,&quot;101060201&quot;,&quot;J&quot;],
[&quot;辽源&quot;,&quot;115&quot;,&quot;101060701&quot;,&quot;L&quot;],
[&quot;四平&quot;,&quot;115&quot;,&quot;101060401&quot;,&quot;S&quot;],
[&quot;松原&quot;,&quot;115&quot;,&quot;101060801&quot;,&quot;S&quot;],
[&quot;通化&quot;,&quot;115&quot;,&quot;101060501&quot;,&quot;T&quot;],
[&quot;延吉&quot;,&quot;115&quot;,&quot;101060301&quot;,&quot;Y&quot;],
[&quot;黑龙江&quot;,&quot;2&quot;,&quot;116&quot;],
[&quot;哈尔滨&quot;,&quot;116&quot;,&quot;101050101&quot;,&quot;H&quot;],
[&quot;大兴安岭&quot;,&quot;116&quot;,&quot;101050701&quot;,&quot;D&quot;],
[&quot;大庆&quot;,&quot;116&quot;,&quot;101050901&quot;,&quot;D&quot;],
[&quot;黑河&quot;,&quot;116&quot;,&quot;101050601&quot;,&quot;H&quot;],
[&quot;鹤岗&quot;,&quot;116&quot;,&quot;101051201&quot;,&quot;H&quot;],
[&quot;佳木斯&quot;,&quot;116&quot;,&quot;101050401&quot;,&quot;J&quot;],
[&quot;鸡西&quot;,&quot;116&quot;,&quot;101051101&quot;,&quot;J&quot;],
[&quot;牡丹江&quot;,&quot;116&quot;,&quot;101050301&quot;,&quot;M&quot;],
[&quot;齐齐哈尔&quot;,&quot;116&quot;,&quot;101050201&quot;,&quot;Q&quot;],
[&quot;七台河&quot;,&quot;116&quot;,&quot;101051002&quot;,&quot;Q&quot;],
[&quot;绥化&quot;,&quot;116&quot;,&quot;101050501&quot;,&quot;S&quot;],
[&quot;伊春&quot;,&quot;116&quot;,&quot;101050801&quot;,&quot;Y&quot;],
[&quot;双鸭山&quot;,&quot;116&quot;,&quot;101051301&quot;,&quot;S&quot;],
[&quot;华东地区&quot;,&quot;0&quot;,&quot;3&quot;],
[&quot;上海&quot;,&quot;3&quot;,&quot;117&quot;],
[&quot;上海&quot;,&quot;117&quot;,&quot;101020100&quot;,&quot;S&quot;],
[&quot;山东&quot;,&quot;3&quot;,&quot;118&quot;],
[&quot;济南&quot;,&quot;118&quot;,&quot;101120101&quot;,&quot;J&quot;],
[&quot;滨州&quot;,&quot;118&quot;,&quot;101121101&quot;,&quot;B&quot;],
[&quot;德州&quot;,&quot;118&quot;,&quot;101120401&quot;,&quot;D&quot;],
[&quot;东营&quot;,&quot;118&quot;,&quot;101121201&quot;,&quot;D&quot;],
[&quot;菏泽&quot;,&quot;118&quot;,&quot;101121001&quot;,&quot;H&quot;],
[&quot;济宁&quot;,&quot;118&quot;,&quot;101120701&quot;,&quot;J&quot;],
[&quot;临沂&quot;,&quot;118&quot;,&quot;101120901&quot;,&quot;L&quot;],
[&quot;莱芜&quot;,&quot;118&quot;,&quot;101121601&quot;,&quot;L&quot;],
[&quot;聊城&quot;,&quot;118&quot;,&quot;101121701&quot;,&quot;L&quot;],
[&quot;青岛&quot;,&quot;118&quot;,&quot;101120201&quot;,&quot;Q&quot;],
[&quot;潍坊&quot;,&quot;118&quot;,&quot;101120601&quot;,&quot;W&quot;],
[&quot;威海&quot;,&quot;118&quot;,&quot;101121301&quot;,&quot;W&quot;],
[&quot;烟台&quot;,&quot;118&quot;,&quot;101120501&quot;,&quot;Y&quot;],
[&quot;日照&quot;,&quot;118&quot;,&quot;101121501&quot;,&quot;R&quot;],
[&quot;泰安&quot;,&quot;118&quot;,&quot;101120801&quot;,&quot;T&quot;],
[&quot;淄博&quot;,&quot;118&quot;,&quot;101120301&quot;,&quot;Z&quot;],
[&quot;枣庄&quot;,&quot;118&quot;,&quot;101121401&quot;,&quot;Z&quot;],
[&quot;安徽&quot;,&quot;3&quot;,&quot;119&quot;],
[&quot;合肥&quot;,&quot;119&quot;,&quot;101220101&quot;,&quot;H&quot;],
[&quot;安庆&quot;,&quot;119&quot;,&quot;101220601&quot;,&quot;A&quot;],
[&quot;蚌埠&quot;,&quot;119&quot;,&quot;101220201&quot;,&quot;B&quot;],
[&quot;亳州&quot;,&quot;119&quot;,&quot;101220901&quot;,&quot;B&quot;],
[&quot;滁州&quot;,&quot;119&quot;,&quot;101221101&quot;,&quot;C&quot;],
[&quot;巢湖&quot;,&quot;119&quot;,&quot;101221601&quot;,&quot;C&quot;],
[&quot;池州&quot;,&quot;119&quot;,&quot;101221701&quot;,&quot;C&quot;],
[&quot;阜阳&quot;,&quot;119&quot;,&quot;101220801&quot;,&quot;F&quot;],
[&quot;淮南&quot;,&quot;119&quot;,&quot;101220401&quot;,&quot;H&quot;],
[&quot;黄山&quot;,&quot;119&quot;,&quot;101221001&quot;,&quot;H&quot;],
[&quot;淮北&quot;,&quot;119&quot;,&quot;101221201&quot;,&quot;H&quot;],
[&quot;六安&quot;,&quot;119&quot;,&quot;101221501&quot;,&quot;L&quot;],
[&quot;马鞍山&quot;,&quot;119&quot;,&quot;101220501&quot;,&quot;M&quot;],
[&quot;宿州&quot;,&quot;119&quot;,&quot;101220701&quot;,&quot;S&quot;],
[&quot;铜陵&quot;,&quot;119&quot;,&quot;101221301&quot;,&quot;T&quot;],
[&quot;芜湖&quot;,&quot;119&quot;,&quot;101220301&quot;,&quot;W&quot;],
[&quot;宣城&quot;,&quot;119&quot;,&quot;101221401&quot;,&quot;X&quot;],
[&quot;江苏&quot;,&quot;3&quot;,&quot;120&quot;],
[&quot;南京&quot;,&quot;120&quot;,&quot;101190101&quot;,&quot;N&quot;],
[&quot;常州&quot;,&quot;120&quot;,&quot;101191101&quot;,&quot;C&quot;],
[&quot;南通&quot;,&quot;120&quot;,&quot;101190501&quot;,&quot;N&quot;],
[&quot;淮安&quot;,&quot;120&quot;,&quot;101190901&quot;,&quot;H&quot;],
[&quot;连云港&quot;,&quot;120&quot;,&quot;101191001&quot;,&quot;L&quot;],
[&quot;苏州&quot;,&quot;120&quot;,&quot;101190401&quot;,&quot;S&quot;],
[&quot;宿迁&quot;,&quot;120&quot;,&quot;101191301&quot;,&quot;S&quot;],
[&quot;泰州&quot;,&quot;120&quot;,&quot;101191201&quot;,&quot;T&quot;],
[&quot;无锡&quot;,&quot;120&quot;,&quot;101190201&quot;,&quot;W&quot;],
[&quot;徐州&quot;,&quot;120&quot;,&quot;101190801&quot;,&quot;X&quot;],
[&quot;扬州&quot;,&quot;120&quot;,&quot;101190601&quot;,&quot;Y&quot;],
[&quot;盐城&quot;,&quot;120&quot;,&quot;101190701&quot;,&quot;Y&quot;],
[&quot;镇江&quot;,&quot;120&quot;,&quot;101190301&quot;,&quot;Z&quot;],
[&quot;浙江&quot;,&quot;3&quot;,&quot;121&quot;],
[&quot;杭州&quot;,&quot;121&quot;,&quot;101210101&quot;,&quot;H&quot;],
[&quot;湖州&quot;,&quot;121&quot;,&quot;101210201&quot;,&quot;H&quot;],
[&quot;嘉兴&quot;,&quot;121&quot;,&quot;101210301&quot;,&quot;J&quot;],
[&quot;金华&quot;,&quot;121&quot;,&quot;101210901&quot;,&quot;J&quot;],
[&quot;丽水&quot;,&quot;121&quot;,&quot;101210801&quot;,&quot;L&quot;],
[&quot;宁波&quot;,&quot;121&quot;,&quot;101210401&quot;,&quot;N&quot;],
[&quot;衢州&quot;,&quot;121&quot;,&quot;101211001&quot;,&quot;Q&quot;],
[&quot;绍兴&quot;,&quot;121&quot;,&quot;101210501&quot;,&quot;S&quot;],
[&quot;台州&quot;,&quot;121&quot;,&quot;101210601&quot;,&quot;T&quot;],
[&quot;温州&quot;,&quot;121&quot;,&quot;101210701&quot;,&quot;W&quot;],
[&quot;舟山&quot;,&quot;121&quot;,&quot;101211101&quot;,&quot;Z&quot;],
[&quot;江西&quot;,&quot;3&quot;,&quot;122&quot;],
[&quot;南昌&quot;,&quot;122&quot;,&quot;101240101&quot;,&quot;N&quot;],
[&quot;抚州&quot;,&quot;122&quot;,&quot;101240401&quot;,&quot;F&quot;],
[&quot;赣州&quot;,&quot;122&quot;,&quot;101240701&quot;,&quot;G&quot;],
[&quot;九江&quot;,&quot;122&quot;,&quot;101240201&quot;,&quot;J&quot;],
[&quot;吉安&quot;,&quot;122&quot;,&quot;101240601&quot;,&quot;J&quot;],
[&quot;景德镇&quot;,&quot;122&quot;,&quot;101240801&quot;,&quot;J&quot;],
[&quot;萍乡&quot;,&quot;122&quot;,&quot;101240901&quot;,&quot;P&quot;],
[&quot;上饶&quot;,&quot;122&quot;,&quot;101240301&quot;,&quot;S&quot;],
[&quot;新余&quot;,&quot;122&quot;,&quot;101241001&quot;,&quot;X&quot;],
[&quot;宜春&quot;,&quot;122&quot;,&quot;101240501&quot;,&quot;Y&quot;],
[&quot;鹰潭&quot;,&quot;122&quot;,&quot;101241101&quot;,&quot;Y&quot;],
[&quot;福建&quot;,&quot;3&quot;,&quot;123&quot;],
[&quot;福州&quot;,&quot;123&quot;,&quot;101230101&quot;,&quot;F&quot;],
[&quot;龙岩&quot;,&quot;123&quot;,&quot;101230701&quot;,&quot;L&quot;],
[&quot;宁德&quot;,&quot;123&quot;,&quot;101230301&quot;,&quot;N&quot;],
[&quot;南平&quot;,&quot;123&quot;,&quot;101230901&quot;,&quot;N&quot;],
[&quot;莆田&quot;,&quot;123&quot;,&quot;101230401&quot;,&quot;P&quot;],
[&quot;泉州&quot;,&quot;123&quot;,&quot;101230501&quot;,&quot;Q&quot;],
[&quot;三明&quot;,&quot;123&quot;,&quot;101230801&quot;,&quot;S&quot;],
[&quot;厦门&quot;,&quot;123&quot;,&quot;101230201&quot;,&quot;X&quot;],
[&quot;漳州&quot;,&quot;123&quot;,&quot;101230601&quot;,&quot;Z&quot;],
[&quot;中南地区&quot;,&quot;0&quot;,&quot;4&quot;],
[&quot;河南&quot;,&quot;4&quot;,&quot;124&quot;],
[&quot;郑州&quot;,&quot;124&quot;,&quot;101180101&quot;,&quot;Z&quot;],
[&quot;安阳&quot;,&quot;124&quot;,&quot;101180201&quot;,&quot;A&quot;],
[&quot;鹤壁&quot;,&quot;124&quot;,&quot;101181201&quot;,&quot;H&quot;],
[&quot;焦作&quot;,&quot;124&quot;,&quot;101181101&quot;,&quot;J&quot;],
[&quot;济源&quot;,&quot;124&quot;,&quot;101181801&quot;,&quot;J&quot;],
[&quot;开封&quot;,&quot;124&quot;,&quot;101180801&quot;,&quot;K&quot;],
[&quot;洛阳&quot;,&quot;124&quot;,&quot;101180901&quot;,&quot;L&quot;],
[&quot;漯河&quot;,&quot;124&quot;,&quot;101181501&quot;,&quot;L&quot;],
[&quot;南阳&quot;,&quot;124&quot;,&quot;101180701&quot;,&quot;N&quot;],
[&quot;平顶山&quot;,&quot;124&quot;,&quot;101180501&quot;,&quot;P&quot;],
[&quot;濮阳&quot;,&quot;124&quot;,&quot;101181301&quot;,&quot;P&quot;],
[&quot;商丘&quot;,&quot;124&quot;,&quot;101181001&quot;,&quot;S&quot;],
[&quot;三门峡&quot;,&quot;124&quot;,&quot;101181701&quot;,&quot;S&quot;],
[&quot;信阳&quot;,&quot;124&quot;,&quot;101180601&quot;,&quot;X&quot;],
[&quot;新乡&quot;,&quot;124&quot;,&quot;101180301&quot;,&quot;X&quot;],
[&quot;许昌&quot;,&quot;124&quot;,&quot;101180401&quot;,&quot;X&quot;],
[&quot;周口&quot;,&quot;124&quot;,&quot;101181401&quot;,&quot;Z&quot;],
[&quot;驻马店&quot;,&quot;124&quot;,&quot;101181601&quot;,&quot;Z&quot;],
[&quot;湖北&quot;,&quot;4&quot;,&quot;125&quot;],
[&quot;武汉&quot;,&quot;125&quot;,&quot;101200101&quot;,&quot;W&quot;],
[&quot;鄂州&quot;,&quot;125&quot;,&quot;101200301&quot;,&quot;E&quot;],
[&quot;恩施&quot;,&quot;125&quot;,&quot;101201001&quot;,&quot;E&quot;],
[&quot;黄冈&quot;,&quot;125&quot;,&quot;101200501&quot;,&quot;H&quot;],
[&quot;黄石&quot;,&quot;125&quot;,&quot;101200601&quot;,&quot;H&quot;],
[&quot;荆州&quot;,&quot;125&quot;,&quot;101200801&quot;,&quot;J&quot;],
[&quot;荆门&quot;,&quot;125&quot;,&quot;101201401&quot;,&quot;J&quot;],
[&quot;潜江&quot;,&quot;125&quot;,&quot;101201701&quot;,&quot;Q&quot;],
[&quot;十堰&quot;,&quot;125&quot;,&quot;101201101&quot;,&quot;S&quot;],
[&quot;神农架&quot;,&quot;125&quot;,&quot;101201201&quot;,&quot;S&quot;],
[&quot;随州&quot;,&quot;125&quot;,&quot;101201301&quot;,&quot;S&quot;],
[&quot;天门&quot;,&quot;125&quot;,&quot;101201501&quot;,&quot;T&quot;],
[&quot;襄樊&quot;,&quot;125&quot;,&quot;101200201&quot;,&quot;X&quot;],
[&quot;孝感&quot;,&quot;125&quot;,&quot;101200401&quot;,&quot;X&quot;],
[&quot;咸宁&quot;,&quot;125&quot;,&quot;101200701&quot;,&quot;X&quot;],
[&quot;仙桃&quot;,&quot;125&quot;,&quot;101201601&quot;,&quot;X&quot;],
[&quot;宜昌&quot;,&quot;125&quot;,&quot;101200901&quot;,&quot;Y&quot;],
[&quot;湖南&quot;,&quot;4&quot;,&quot;126&quot;],
[&quot;长沙&quot;,&quot;126&quot;,&quot;101250101&quot;,&quot;C&quot;],
[&quot;郴州&quot;,&quot;126&quot;,&quot;101250501&quot;,&quot;C&quot;],
[&quot;常德&quot;,&quot;126&quot;,&quot;101250601&quot;,&quot;C&quot;],
[&quot;衡阳&quot;,&quot;126&quot;,&quot;101250401&quot;,&quot;H&quot;],
[&quot;怀化&quot;,&quot;126&quot;,&quot;101251201&quot;,&quot;H&quot;],
[&quot;吉首&quot;,&quot;126&quot;,&quot;101251501&quot;,&quot;J&quot;],
[&quot;娄底&quot;,&quot;126&quot;,&quot;101250801&quot;,&quot;L&quot;],
[&quot;黔阳&quot;,&quot;126&quot;,&quot;101251301&quot;,&quot;Q&quot;],
[&quot;邵阳&quot;,&quot;126&quot;,&quot;101250901&quot;,&quot;S&quot;],
[&quot;湘潭&quot;,&quot;126&quot;,&quot;101250201&quot;,&quot;X&quot;],
[&quot;益阳&quot;,&quot;126&quot;,&quot;101250701&quot;,&quot;Y&quot;],
[&quot;岳阳&quot;,&quot;126&quot;,&quot;101251001&quot;,&quot;Y&quot;],
[&quot;永州&quot;,&quot;126&quot;,&quot;101251401&quot;,&quot;Y&quot;],
[&quot;株洲&quot;,&quot;126&quot;,&quot;101250301&quot;,&quot;Z&quot;],
[&quot;张家界&quot;,&quot;126&quot;,&quot;101251101&quot;,&quot;Z&quot;],
[&quot;广东&quot;,&quot;4&quot;,&quot;127&quot;],
[&quot;广州&quot;,&quot;127&quot;,&quot;101280101&quot;,&quot;G&quot;],
[&quot;潮州&quot;,&quot;127&quot;,&quot;101281501&quot;,&quot;C&quot;],
[&quot;东莞&quot;,&quot;127&quot;,&quot;101281601&quot;,&quot;D&quot;],
//[&quot;东沙岛&quot;,&quot;127&quot;,&quot;101282105&quot;,&quot;D&quot;],
[&quot;佛山&quot;,&quot;127&quot;,&quot;101280800&quot;,&quot;F&quot;],
[&quot;惠州&quot;,&quot;127&quot;,&quot;101280301&quot;,&quot;H&quot;],
[&quot;河源&quot;,&quot;127&quot;,&quot;101281201&quot;,&quot;H&quot;],
[&quot;江门&quot;,&quot;127&quot;,&quot;101281101&quot;,&quot;J&quot;],
[&quot;揭阳&quot;,&quot;127&quot;,&quot;101281901&quot;,&quot;J&quot;],
[&quot;梅州&quot;,&quot;127&quot;,&quot;101280401&quot;,&quot;M&quot;],
[&quot;茂名&quot;,&quot;127&quot;,&quot;101282001&quot;,&quot;M&quot;],
[&quot;清远&quot;,&quot;127&quot;,&quot;101281301&quot;,&quot;Q&quot;],
[&quot;韶关&quot;,&quot;127&quot;,&quot;101280201&quot;,&quot;S&quot;],
[&quot;汕头&quot;,&quot;127&quot;,&quot;101280501&quot;,&quot;S&quot;],
[&quot;深圳&quot;,&quot;127&quot;,&quot;101280601&quot;,&quot;S&quot;],
[&quot;汕尾&quot;,&quot;127&quot;,&quot;101282101&quot;,&quot;S&quot;],
[&quot;云浮&quot;,&quot;127&quot;,&quot;101281401&quot;,&quot;Y&quot;],
[&quot;阳江&quot;,&quot;127&quot;,&quot;101281801&quot;,&quot;Y&quot;],
[&quot;珠海&quot;,&quot;127&quot;,&quot;101280701&quot;,&quot;Z&quot;],
[&quot;肇庆&quot;,&quot;127&quot;,&quot;101280901&quot;,&quot;Z&quot;],
[&quot;湛江&quot;,&quot;127&quot;,&quot;101281001&quot;,&quot;Z&quot;],
[&quot;中山&quot;,&quot;127&quot;,&quot;101281701&quot;,&quot;Z&quot;],
[&quot;广西&quot;,&quot;4&quot;,&quot;128&quot;],
[&quot;南宁&quot;,&quot;128&quot;,&quot;101300101&quot;,&quot;N&quot;],
[&quot;北海&quot;,&quot;128&quot;,&quot;101301301&quot;,&quot;B&quot;],
[&quot;百色&quot;,&quot;128&quot;,&quot;101301001&quot;,&quot;B&quot;],
[&quot;崇左&quot;,&quot;128&quot;,&quot;101300201&quot;,&quot;C&quot;],
[&quot;防城港&quot;,&quot;128&quot;,&quot;101301401&quot;,&quot;F&quot;],
[&quot;桂林&quot;,&quot;128&quot;,&quot;101300501&quot;,&quot;G&quot;],
[&quot;贵港&quot;,&quot;128&quot;,&quot;101300801&quot;,&quot;G&quot;],
[&quot;贺州&quot;,&quot;128&quot;,&quot;101300701&quot;,&quot;H&quot;],
[&quot;河池&quot;,&quot;128&quot;,&quot;101301201&quot;,&quot;H&quot;],
[&quot;柳州&quot;,&quot;128&quot;,&quot;101300301&quot;,&quot;L&quot;],
[&quot;来宾&quot;,&quot;128&quot;,&quot;101300401&quot;,&quot;L&quot;],
[&quot;钦州&quot;,&quot;128&quot;,&quot;101301101&quot;,&quot;Q&quot;],
[&quot;梧州&quot;,&quot;128&quot;,&quot;101300601&quot;,&quot;W&quot;],
[&quot;玉林&quot;,&quot;128&quot;,&quot;101300901&quot;,&quot;Y&quot;],
[&quot;海南&quot;,&quot;4&quot;,&quot;129&quot;],
[&quot;海口&quot;,&quot;129&quot;,&quot;101310101&quot;,&quot;H&quot;],
[&quot;白沙&quot;,&quot;129&quot;,&quot;101310207&quot;,&quot;B&quot;],
[&quot;保亭&quot;,&quot;129&quot;,&quot;101310214&quot;,&quot;B&quot;],
[&quot;澄迈&quot;,&quot;129&quot;,&quot;101310204&quot;,&quot;C&quot;],
[&quot;昌江&quot;,&quot;129&quot;,&quot;101310206&quot;,&quot;C&quot;],
[&quot;东方&quot;,&quot;129&quot;,&quot;101310202&quot;,&quot;D&quot;],
[&quot;儋州&quot;,&quot;129&quot;,&quot;101310205&quot;,&quot;D&quot;],
[&quot;定安&quot;,&quot;129&quot;,&quot;101310209&quot;,&quot;D&quot;],
[&quot;临高&quot;,&quot;129&quot;,&quot;101310203&quot;,&quot;L&quot;],
[&quot;陵水&quot;,&quot;129&quot;,&quot;101310216&quot;,&quot;L&quot;],
[&quot;乐东&quot;,&quot;129&quot;,&quot;101310221&quot;,&quot;L&quot;],
[&quot;琼山&quot;,&quot;129&quot;,&quot;101310102&quot;,&quot;Q&quot;],
[&quot;琼中&quot;,&quot;129&quot;,&quot;101310208&quot;,&quot;Q&quot;],
[&quot;琼海&quot;,&quot;129&quot;,&quot;101310211&quot;,&quot;Q&quot;],
[&quot;清兰&quot;,&quot;129&quot;,&quot;101310213&quot;,&quot;Q&quot;],
[&quot;南沙岛&quot;,&quot;129&quot;,&quot;101310220&quot;,&quot;N&quot;],
[&quot;三亚&quot;,&quot;129&quot;,&quot;101310201&quot;,&quot;S&quot;],
[&quot;珊瑚岛&quot;,&quot;129&quot;,&quot;101310218&quot;,&quot;S&quot;],
[&quot;屯昌&quot;,&quot;129&quot;,&quot;101310210&quot;,&quot;T&quot;],
[&quot;通什&quot;,&quot;129&quot;,&quot;101310222&quot;,&quot;T&quot;],
[&quot;文昌&quot;,&quot;129&quot;,&quot;101310212&quot;,&quot;W&quot;],
[&quot;万宁&quot;,&quot;129&quot;,&quot;101310215&quot;,&quot;W&quot;],
[&quot;西沙&quot;,&quot;129&quot;,&quot;101310217&quot;,&quot;X&quot;],
[&quot;永署礁&quot;,&quot;129&quot;,&quot;101310219&quot;,&quot;Y&quot;],
[&quot;西北地区&quot;,&quot;0&quot;,&quot;5&quot;],
[&quot;陕西&quot;,&quot;5&quot;,&quot;130&quot;],
[&quot;西安&quot;,&quot;130&quot;,&quot;101110101&quot;,&quot;X&quot;],
[&quot;安康&quot;,&quot;130&quot;,&quot;101110701&quot;,&quot;A&quot;],
[&quot;宝鸡&quot;,&quot;130&quot;,&quot;101110901&quot;,&quot;B&quot;],
[&quot;汉中&quot;,&quot;130&quot;,&quot;101110801&quot;,&quot;H&quot;],
[&quot;商洛&quot;,&quot;130&quot;,&quot;101110601&quot;,&quot;S&quot;],
[&quot;铜川&quot;,&quot;130&quot;,&quot;101111001&quot;,&quot;T&quot;],
[&quot;渭南&quot;,&quot;130&quot;,&quot;101110501&quot;,&quot;W&quot;],
[&quot;咸阳&quot;,&quot;130&quot;,&quot;101110200&quot;,&quot;X&quot;],
[&quot;延安&quot;,&quot;130&quot;,&quot;101110300&quot;,&quot;Y&quot;],
[&quot;榆林&quot;,&quot;130&quot;,&quot;101110401&quot;,&quot;Y&quot;],
[&quot;甘肃&quot;,&quot;5&quot;,&quot;131&quot;],
[&quot;兰州&quot;,&quot;131&quot;,&quot;101160101&quot;,&quot;L&quot;],
[&quot;白银&quot;,&quot;131&quot;,&quot;101161301&quot;,&quot;B&quot;],
[&quot;定西&quot;,&quot;131&quot;,&quot;101160201&quot;,&quot;D&quot;],
[&quot;合作&quot;,&quot;131&quot;,&quot;101161201&quot;,&quot;H&quot;],
[&quot;金昌&quot;,&quot;131&quot;,&quot;101160601&quot;,&quot;J&quot;],
[&quot;酒泉&quot;,&quot;131&quot;,&quot;101160801&quot;,&quot;J&quot;],
[&quot;临夏&quot;,&quot;131&quot;,&quot;101161101&quot;,&quot;L&quot;],
[&quot;平凉&quot;,&quot;131&quot;,&quot;101160301&quot;,&quot;P&quot;],
[&quot;庆阳&quot;,&quot;131&quot;,&quot;101160401&quot;,&quot;Q&quot;],
[&quot;天水&quot;,&quot;131&quot;,&quot;101160901&quot;,&quot;T&quot;],
[&quot;武威&quot;,&quot;131&quot;,&quot;101160501&quot;,&quot;W&quot;],
[&quot;武都&quot;,&quot;131&quot;,&quot;101161001&quot;,&quot;W&quot;],
[&quot;张掖&quot;,&quot;131&quot;,&quot;101160701&quot;,&quot;Z&quot;],
[&quot;宁夏&quot;,&quot;5&quot;,&quot;132&quot;],
[&quot;银川&quot;,&quot;132&quot;,&quot;101170101&quot;,&quot;Y&quot;],
[&quot;固原&quot;,&quot;132&quot;,&quot;101170401&quot;,&quot;G&quot;],
[&quot;石嘴山&quot;,&quot;132&quot;,&quot;101170201&quot;,&quot;S&quot;],
[&quot;吴忠&quot;,&quot;132&quot;,&quot;101170301&quot;,&quot;W&quot;],
[&quot;中卫&quot;,&quot;132&quot;,&quot;101170501&quot;,&quot;Z&quot;],
[&quot;青海&quot;,&quot;5&quot;,&quot;133&quot;],
[&quot;西宁&quot;,&quot;133&quot;,&quot;101150101&quot;,&quot;X&quot;],
[&quot;果洛&quot;,&quot;133&quot;,&quot;101150501&quot;,&quot;G&quot;],
[&quot;海西&quot;,&quot;133&quot;,&quot;101150701&quot;,&quot;H&quot;],
[&quot;海北&quot;,&quot;133&quot;,&quot;101150801&quot;,&quot;H&quot;],
[&quot;海东&quot;,&quot;133&quot;,&quot;101150201&quot;,&quot;H&quot;],
[&quot;黄南&quot;,&quot;133&quot;,&quot;101150301&quot;,&quot;H&quot;],
[&quot;海南&quot;,&quot;133&quot;,&quot;101150401&quot;,&quot;H&quot;],
[&quot;玉树&quot;,&quot;133&quot;,&quot;101150601&quot;,&quot;Y&quot;],
[&quot;新疆&quot;,&quot;5&quot;,&quot;134&quot;],
[&quot;乌鲁木齐&quot;,&quot;134&quot;,&quot;101130101&quot;,&quot;W&quot;],
[&quot;阿勒泰&quot;,&quot;134&quot;,&quot;101131401&quot;,&quot;A&quot;],
[&quot;阿图什&quot;,&quot;134&quot;,&quot;101131501&quot;,&quot;A&quot;],
[&quot;阿克苏&quot;,&quot;134&quot;,&quot;101130801&quot;,&quot;A&quot;],
[&quot;阿拉尔&quot;,&quot;134&quot;,&quot;101130701&quot;,&quot;A&quot;],
[&quot;博乐&quot;,&quot;134&quot;,&quot;1011301601&quot;,&quot;B&quot;],
[&quot;昌吉&quot;,&quot;134&quot;,&quot;101130401&quot;,&quot;C&quot;],
[&quot;哈密&quot;,&quot;134&quot;,&quot;101131201&quot;,&quot;H&quot;],
[&quot;和田&quot;,&quot;134&quot;,&quot;101131301&quot;,&quot;H&quot;],
[&quot;克拉玛依&quot;,&quot;134&quot;,&quot;101130201&quot;,&quot;K&quot;],
[&quot;喀什&quot;,&quot;134&quot;,&quot;101130901&quot;,&quot;K&quot;],
[&quot;库尔勒&quot;,&quot;134&quot;,&quot;101130601&quot;,&quot;K&quot;],
[&quot;石河子&quot;,&quot;134&quot;,&quot;101130301&quot;,&quot;S&quot;],
[&quot;吐鲁番&quot;,&quot;134&quot;,&quot;101130501&quot;,&quot;T&quot;],
[&quot;塔城&quot;,&quot;134&quot;,&quot;101131101&quot;,&quot;T&quot;],
[&quot;伊宁&quot;,&quot;134&quot;,&quot;101131001&quot;,&quot;Y&quot;],
[&quot;西南地区&quot;,&quot;0&quot;,&quot;6&quot;],
[&quot;重庆&quot;,&quot;6&quot;,&quot;135&quot;],
[&quot;重庆&quot;,&quot;135&quot;,&quot;101040100&quot;,&quot;C&quot;],
[&quot;四川&quot;,&quot;6&quot;,&quot;136&quot;],
[&quot;成都&quot;,&quot;136&quot;,&quot;101270101&quot;,&quot;C&quot;],
[&quot;阿坝&quot;,&quot;136&quot;,&quot;101271901&quot;,&quot;A&quot;],
[&quot;巴中&quot;,&quot;136&quot;,&quot;101270901&quot;,&quot;B&quot;],
[&quot;德阳&quot;,&quot;136&quot;,&quot;101272001&quot;,&quot;D&quot;],
[&quot;达州&quot;,&quot;136&quot;,&quot;101270601&quot;,&quot;D&quot;],
[&quot;广元&quot;,&quot;136&quot;,&quot;101272101&quot;,&quot;G&quot;],
[&quot;甘孜&quot;,&quot;136&quot;,&quot;101271801&quot;,&quot;G&quot;],
[&quot;泸州&quot;,&quot;136&quot;,&quot;101271001&quot;,&quot;L&quot;],
[&quot;乐山&quot;,&quot;136&quot;,&quot;101271401&quot;,&quot;L&quot;],
[&quot;凉山&quot;,&quot;136&quot;,&quot;101271601&quot;,&quot;L&quot;],
[&quot;眉山&quot;,&quot;136&quot;,&quot;101271501&quot;,&quot;M&quot;],
[&quot;绵阳&quot;,&quot;136&quot;,&quot;101270401&quot;,&quot;M&quot;],
[&quot;南充&quot;,&quot;136&quot;,&quot;101270501&quot;,&quot;N&quot;],
[&quot;内江&quot;,&quot;136&quot;,&quot;101271201&quot;,&quot;N&quot;],
[&quot;攀枝花&quot;,&quot;136&quot;,&quot;101270201&quot;,&quot;P&quot;],
[&quot;遂宁&quot;,&quot;136&quot;,&quot;101270701&quot;,&quot;S&quot;],
[&quot;广安&quot;,&quot;136&quot;,&quot;101270801&quot;,&quot;G&quot;],
[&quot;雅安&quot;,&quot;136&quot;,&quot;101271701&quot;,&quot;Y&quot;],
[&quot;宜宾&quot;,&quot;136&quot;,&quot;101271101&quot;,&quot;Y&quot;],
[&quot;资阳&quot;,&quot;136&quot;,&quot;101271301&quot;,&quot;Z&quot;],
[&quot;自贡&quot;,&quot;136&quot;,&quot;101270301&quot;,&quot;Z&quot;],
[&quot;贵州&quot;,&quot;6&quot;,&quot;137&quot;],
[&quot;贵阳&quot;,&quot;137&quot;,&quot;101260101&quot;,&quot;G&quot;],
[&quot;安顺&quot;,&quot;137&quot;,&quot;101260301&quot;,&quot;A&quot;],
[&quot;毕节&quot;,&quot;137&quot;,&quot;101260701&quot;,&quot;B&quot;],
[&quot;都匀&quot;,&quot;137&quot;,&quot;101260401&quot;,&quot;D&quot;],
[&quot;凯里&quot;,&quot;137&quot;,&quot;101260501&quot;,&quot;K&quot;],
[&quot;六盘水&quot;,&quot;137&quot;,&quot;101260801&quot;,&quot;L&quot;],
[&quot;铜仁&quot;,&quot;137&quot;,&quot;101260601&quot;,&quot;T&quot;],
[&quot;遵义&quot;,&quot;137&quot;,&quot;101260201&quot;,&quot;Z&quot;],
[&quot;黔西&quot;,&quot;137&quot;,&quot;101260901&quot;,&quot;Q&quot;],
[&quot;云南&quot;,&quot;6&quot;,&quot;138&quot;],
[&quot;昆明&quot;,&quot;138&quot;,&quot;101290101&quot;,&quot;K&quot;],
[&quot;保山&quot;,&quot;138&quot;,&quot;101290501&quot;,&quot;B&quot;],
[&quot;楚雄&quot;,&quot;138&quot;,&quot;101290801&quot;,&quot;C&quot;],
[&quot;大理&quot;,&quot;138&quot;,&quot;101290201&quot;,&quot;D&quot;],
[&quot;德宏&quot;,&quot;138&quot;,&quot;101291501&quot;,&quot;D&quot;],
[&quot;红河&quot;,&quot;138&quot;,&quot;101290301&quot;,&quot;H&quot;],
[&quot;景洪&quot;,&quot;138&quot;,&quot;101291601&quot;,&quot;J&quot;],
[&quot;临沧&quot;,&quot;138&quot;,&quot;101291101&quot;,&quot;L&quot;],
[&quot;丽江&quot;,&quot;138&quot;,&quot;101291401&quot;,&quot;L&quot;],
[&quot;怒江&quot;,&quot;138&quot;,&quot;101291201&quot;,&quot;N&quot;],
[&quot;曲靖&quot;,&quot;138&quot;,&quot;101290401&quot;,&quot;Q&quot;],
[&quot;思茅&quot;,&quot;138&quot;,&quot;101290901&quot;,&quot;S&quot;],
[&quot;文山&quot;,&quot;138&quot;,&quot;101290601&quot;,&quot;W&quot;],
[&quot;玉溪&quot;,&quot;138&quot;,&quot;101290701&quot;,&quot;Y&quot;],
[&quot;昭通&quot;,&quot;138&quot;,&quot;101291001&quot;,&quot;Z&quot;],
[&quot;中甸&quot;,&quot;138&quot;,&quot;101291301&quot;,&quot;Z&quot;],
[&quot;西藏&quot;,&quot;6&quot;,&quot;139&quot;],
[&quot;拉萨&quot;,&quot;139&quot;,&quot;101140101&quot;,&quot;L&quot;],
[&quot;阿里&quot;,&quot;139&quot;,&quot;101140701&quot;,&quot;A&quot;],
[&quot;昌都&quot;,&quot;139&quot;,&quot;101140501&quot;,&quot;C&quot;],
[&quot;林芝&quot;,&quot;139&quot;,&quot;101140401&quot;,&quot;L&quot;],
[&quot;那曲&quot;,&quot;139&quot;,&quot;101140601&quot;,&quot;N&quot;],
[&quot;日喀则&quot;,&quot;139&quot;,&quot;101140201&quot;,&quot;R&quot;],
[&quot;山南&quot;,&quot;139&quot;,&quot;101140301&quot;,&quot;S&quot;],
[&quot;港澳台&quot;,&quot;0&quot;,&quot;7&quot;],
[&quot;香港&quot;,&quot;7&quot;,&quot;140&quot;],
[&quot;香港&quot;,&quot;140&quot;,&quot;101320101&quot;,&quot;X&quot;],
[&quot;澳门&quot;,&quot;7&quot;,&quot;141&quot;],
[&quot;澳门&quot;,&quot;141&quot;,&quot;101330101&quot;,&quot;A&quot;],
[&quot;台湾&quot;,&quot;7&quot;,&quot;142&quot;],
[&quot;台北县&quot;,&quot;142&quot;,&quot;101340101&quot;,&quot;T&quot;],
[&quot;高雄&quot;,&quot;142&quot;,&quot;101340201&quot;,&quot;G&quot;],
[&quot;花莲&quot;,&quot;142&quot;,&quot;101341001&quot;,&quot;H&quot;],
[&quot;嘉义&quot;,&quot;142&quot;,&quot;101340901&quot;,&quot;J&quot;],
[&quot;马公&quot;,&quot;142&quot;,&quot;101340801&quot;,&quot;M&quot;],
[&quot;彭佳屿&quot;,&quot;142&quot;,&quot;101341201&quot;,&quot;P&quot;],
[&quot;台南&quot;,&quot;142&quot;,&quot;101340301&quot;,&quot;T&quot;],
[&quot;台中&quot;,&quot;142&quot;,&quot;101340401&quot;,&quot;T&quot;],
[&quot;桃园&quot;,&quot;142&quot;,&quot;101340501&quot;,&quot;T&quot;],
[&quot;台东&quot;,&quot;142&quot;,&quot;101341101&quot;,&quot;T&quot;],
[&quot;新竹县&quot;,&quot;142&quot;,&quot;101340601&quot;,&quot;X&quot;],
[&quot;宜兰&quot;,&quot;142&quot;,&quot;101340701&quot;,&quot;Y&quot;]
]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/06/get_data_url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在你的WEB项目中应用XCSS</title>
		<link>http://www.lingye.net/blog/2010/05/xcss/</link>
		<comments>http://www.lingye.net/blog/2010/05/xcss/#comments</comments>
		<pubDate>Thu, 27 May 2010 02:07:27 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=120</guid>
		<description><![CDATA[先看一段代码：
vars{
	$width=500px;
	$topheight=90px;
	$color=#333;
	$mainbgcolor=#fff;
	$topbgcolor=#666;
	$border = border-top: 1px solid #ccc;
}
#wrap{width:$width;$border}
#top{height:$topheight;background:$topbgcolor}
注意到 vars{}　标签
这就是简单的XCSS语法
我认为的好处：
使编写CSS条理更清晰，更有面象对象的感觉
可以在输出css时，自动处理掉多余的空格、换行等
下载：http://xcss.antpaw.org/
使用方法：
将下载的压缩包压到你的网站，比如我的是　/template/xcss
然后在你的页面中用script引入：
&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#62;
&#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;zh-cn&#34;&#62;
&#60;head&#62;
	&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html;charset=gb2312&#34; /&#62;
	&#60;title&#62;&#60;/title&#62;
	&#60;script type=&#34;text/javascript&#34; src=&#34;/template/xcss/&#34;&#62;&#60;/script&#62;
	&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;/template/default/master.css&#34;/&#62;
&#60;/head&#62;
&#60;body&#62;
	&#60;div id=&#34;wrap&#34;&#62;

		&#60;div id=&#34;top&#34;&#62;&#60;/div&#62;
		&#60;div id=&#34;middle&#34;&#62;&#60;/div&#62;
		&#60;div id=&#34;bottom&#34;&#62;&#60;/div&#62;
	&#60;/div&#62;
&#60;/body&#62;
&#60;/html&#62;
配置XCSS中的config.php文件，配置需要加载的css文件
默认的设置中　会自动生成　master.css
所以你的页面只要引用一个master.css文件，后台的多个Css都交给XCSS去自动加载
在线的范例：http://www.lingye.net/xcss.html
]]></description>
			<content:encoded><![CDATA[<p>先看一段代码：</p>
<pre class="brush: css;">vars{
	$width=500px;
	$topheight=90px;
	$color=#333;
	$mainbgcolor=#fff;
	$topbgcolor=#666;
	$border = border-top: 1px solid #ccc;
}
#wrap{width:$width;$border}
#top{height:$topheight;background:$topbgcolor}</pre>
<p>注意到 vars{}　标签<br />
这就是简单的XCSS语法<br />
我认为的好处：<br />
使编写CSS条理更清晰，更有面象对象的感觉<br />
可以在输出css时，自动处理掉多余的空格、换行等</p>
<p>下载：<a href="http://xcss.antpaw.org/">http://xcss.antpaw.org/</a><br />
使用方法：<br />
将下载的压缩包压到你的网站，比如我的是　/template/xcss<br />
然后在你的页面中用script引入：</p>
<pre class="brush: xml;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;zh-cn&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=gb2312&quot; /&gt;
	&lt;title&gt;&lt;/title&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;/template/xcss/&quot;&gt;&lt;/script&gt;
	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/template/default/master.css&quot;/&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;wrap&quot;&gt;

		&lt;div id=&quot;top&quot;&gt;&lt;/div&gt;
		&lt;div id=&quot;middle&quot;&gt;&lt;/div&gt;
		&lt;div id=&quot;bottom&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>配置XCSS中的config.php文件，配置需要加载的css文件<br />
默认的设置中　会自动生成　master.css<br />
所以你的页面只要引用一个master.css文件，后台的多个Css都交给XCSS去自动加载</p>
<p>在线的范例：<a href="http://www.lingye.net/xcss.html">http://www.lingye.net/xcss.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/xcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android 2.2 尝鲜</title>
		<link>http://www.lingye.net/blog/2010/05/android-2-2-taste/</link>
		<comments>http://www.lingye.net/blog/2010/05/android-2-2-taste/#comments</comments>
		<pubDate>Mon, 24 May 2010 02:13:52 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=113</guid>
		<description><![CDATA[从CM5.06直接下载2.2 for rooted　安装包刷机成功

主界面：


重要的Flash支持：

奇艺网首页的Flash大幻灯显示：

Flash禁用可通过浏览器设置中的　插件　启用选项来控制。
另外，联系人对中文名称支持以拼音分组，市场做了界面上的一些改动
]]></description>
			<content:encoded><![CDATA[<p>从CM5.06直接下载2.2 for rooted　安装包刷机成功<br />
<a href="http://www.lingye.net/blog/wp-content/uploads/2010/05/about.png"><img src="http://www.lingye.net/blog/wp-content/uploads/2010/05/about.png" alt="" title="about" width="480" height="800" class="alignnone size-full wp-image-114" /></a><br />
主界面：<br />
<a href="http://www.lingye.net/blog/wp-content/uploads/2010/05/main.png"><img src="http://www.lingye.net/blog/wp-content/uploads/2010/05/main.png" alt="" title="main" width="480" height="800" class="alignnone size-full wp-image-117" /></a><br />
<span id="more-113"></span><br />
重要的Flash支持：<br />
<a href="http://www.lingye.net/blog/wp-content/uploads/2010/05/flash02.png"><img src="http://www.lingye.net/blog/wp-content/uploads/2010/05/flash02.png" alt="" title="flash02" width="480" height="800" class="alignnone size-full wp-image-116" /></a><br />
奇艺网首页的Flash大幻灯显示：<br />
<a href="http://www.lingye.net/blog/wp-content/uploads/2010/05/flash1.png"><img src="http://www.lingye.net/blog/wp-content/uploads/2010/05/flash1.png" alt="" title="flash1" width="480" height="800" class="alignnone size-full wp-image-115" /></a><br />
Flash禁用可通过浏览器设置中的　插件　启用选项来控制。</p>
<p>另外，联系人对中文名称支持以拼音分组，市场做了界面上的一些改动</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/android-2-2-taste/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE全测试 Internet Explorer Collection</title>
		<link>http://www.lingye.net/blog/2010/05/internet-explorer-collection/</link>
		<comments>http://www.lingye.net/blog/2010/05/internet-explorer-collection/#comments</comments>
		<pubDate>Wed, 19 May 2010 01:42:30 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[工具]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=107</guid>
		<description><![CDATA[Internet Explorer Collection
一个IE全面测试工具，内含  Internet Explorer Developer Toolbar 1.00.2188.0

支持以下IE版本：
•Internet Explorer 1.0 (4.40.308)
•Internet Explorer 1.5 (0.1.0.10)
•Internet Explorer 2.01 (2.01.046)
•Internet Explorer 3.0 (3.0.1152)
•Internet Explorer 3.01 (3.01.2723)
•Internet Explorer 3.03 (3.03.2925)
•Internet Explorer 4.01 (4.72.3110.0)
•Internet Explorer 5.01 (5.00.3314.2100)
•Internet Explorer 5.5 (5.51.4807.2300)
•Internet Explorer 6.0 (6.00.2800.1106)
•Internet Explorer 6.0 (6.00.2900.2180)
•Internet Explorer 7.0 (7.00.5730.13)
•Internet Explorer 8.0 (8.00.6001.18702)
下载地址1：http://codecpack.nl/iecollection1606.exe
国内下载：http://www.onlinedown.net/soft/71978.htm
]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer Collection<br />
一个IE全面测试工具，内含  Internet Explorer Developer Toolbar 1.00.2188.0<br />
<a href="http://www.lingye.net/blog/wp-content/uploads/2010/05/iecollection_setup_02_components.png"><img src="http://www.lingye.net/blog/wp-content/uploads/2010/05/iecollection_setup_02_components.png" alt="" title="iecollection_setup_02_components" width="503" height="483" class="alignnone size-full wp-image-110" /></a><br />
支持以下IE版本：<br />
•Internet Explorer 1.0 (4.40.308)<br />
•Internet Explorer 1.5 (0.1.0.10)<br />
•Internet Explorer 2.01 (2.01.046)<br />
•Internet Explorer 3.0 (3.0.1152)<br />
•Internet Explorer 3.01 (3.01.2723)<br />
•Internet Explorer 3.03 (3.03.2925)<br />
•Internet Explorer 4.01 (4.72.3110.0)<br />
•Internet Explorer 5.01 (5.00.3314.2100)<br />
•Internet Explorer 5.5 (5.51.4807.2300)<br />
•Internet Explorer 6.0 (6.00.2800.1106)<br />
•Internet Explorer 6.0 (6.00.2900.2180)<br />
•Internet Explorer 7.0 (7.00.5730.13)<br />
•Internet Explorer 8.0 (8.00.6001.18702)</p>
<p>下载地址1：<a href="http://codecpack.nl/iecollection1606.exe">http://codecpack.nl/iecollection1606.exe</a><br />
国内下载：<a href="http://www.onlinedown.net/soft/71978.htm">http://www.onlinedown.net/soft/71978.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/internet-explorer-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>overflow的用处</title>
		<link>http://www.lingye.net/blog/2010/05/css-overflow/</link>
		<comments>http://www.lingye.net/blog/2010/05/css-overflow/#comments</comments>
		<pubDate>Tue, 18 May 2010 08:54:52 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=105</guid>
		<description><![CDATA[除了清除溢出
overflow还有别的用处
当一个块状元素设置了overflow属性（auto或hidden）,当它的尺寸没指定时，尺寸会随着内部元素的尺寸变化而变化
&#60;html&#62;
	&#60;head&#62;
		&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;
		&#60;title&#62;overflow&#60;/title&#62;
	&#60;/head&#62;
	&#60;body&#62;
		&#60;style type=&#34;text/css&#34;&#62;
			#box{overflow:hidden;background:#fff;border:1px solid #666;width:300px;}
		&#60;/style&#62;
		&#60;div id=&#34;box&#34;&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
				&#60;p&#62;&#38;nbsp;test&#60;/p&#62;
		&#60;/div&#62;
	&#60;/body&#62;
&#60;/html&#62;
]]></description>
			<content:encoded><![CDATA[<p>除了清除溢出<br />
overflow还有别的用处<br />
当一个块状元素设置了overflow属性（auto或hidden）,当它的尺寸没指定时，尺寸会随着内部元素的尺寸变化而变化</p>
<pre class="brush: xml;">&lt;html&gt;
	&lt;head&gt;
		&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
		&lt;title&gt;overflow&lt;/title&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;style type=&quot;text/css&quot;&gt;
			#box{overflow:hidden;background:#fff;border:1px solid #666;width:300px;}
		&lt;/style&gt;
		&lt;div id=&quot;box&quot;&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
				&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/css-overflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS框架</title>
		<link>http://www.lingye.net/blog/2010/05/css-frame/</link>
		<comments>http://www.lingye.net/blog/2010/05/css-frame/#comments</comments>
		<pubDate>Tue, 18 May 2010 07:33:48 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=102</guid>
		<description><![CDATA[基于css实现的网页框架效果
效果见：http://www.lingye.net/demo/css-frame/index.html
原文：http://www.456bereastreet.com/archive/200609/css_frames_v2_fullheight/
]]></description>
			<content:encoded><![CDATA[<p>基于css实现的网页框架效果<br />
效果见：<a href="http://www.lingye.net/demo/css-frame/index.html">http://www.lingye.net/demo/css-frame/index.html</a></p>
<p>原文：<a href="http://www.456bereastreet.com/archive/200609/css_frames_v2_fullheight/">http://www.456bereastreet.com/archive/200609/css_frames_v2_fullheight/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/css-frame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx的泛域名解析</title>
		<link>http://www.lingye.net/blog/2010/05/nginx_x_domain/</link>
		<comments>http://www.lingye.net/blog/2010/05/nginx_x_domain/#comments</comments>
		<pubDate>Thu, 13 May 2010 11:54:59 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=93</guid>
		<description><![CDATA[
        server{
                listen          80;
                server_name     [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain;">
        server{
                listen          80;
                server_name     *.1988m.com;
                server_name_in_redirect off;
                access_log      logs/f1988m.access.log main;
                error_page 403  /403.html;
                error_page 404  /404.html;
                error_page 502  /502.html;
                #默认目录
                set $rootdir /Data/webapps/f1988m;

                location / {
                        index   index.htm index.html index.php;
                        #默认目录
                        #set $rootdir /Data/webapps/f1988m;
                        #匹配二级域名
                        if ($host ~* ^([^\.]+)\.([^\.]+)\.([^\.]+)$) {
                                set $aname $1;
                        }
                        if ($aname ~* ^img$) {
                                set $rootdir /Data/webapps/f1988m/imgfile;
                        }
                        if ($aname ~* ^s2$) {
                                set $rootdir /Data/webapps/s2;
                        }
                        if ($aname ~* ^www$) {
                                set $rootdir /Data/webapps/f1988m/www;
                        }
                        root    $rootdir;
                }
                #静态文件缓存时间设置
                 location ~* ^.+img\.1988m\.com/.+\.(gif|jpg|jpeg|png|bmp|ico|swf)$ {
                        root $rootdir;
                        expires 7d;
                        add_header Vary Accept-Encoding;
                }
                location ~ \.php$ {
                        root            $rootdir;
                        fastcgi_pass    127.0.0.1:9000;
                        fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                        fastcgi_param  REQUEST_METHOD   $request_method;
                        fastcgi_param  CONTENT_TYPE     $content_type;
                        fastcgi_param  CONTENT_LENGTH   $content_length;
                        include        fastcgi_params;
                }

}
</pre>
<p>要求符合的条件：<br />
所操作的域名支持泛解析，即支持*为值的A记录。</p>
<p>测试：<br />
<a href="http://abcde.1988m.com">http://abcde.1988m.com</a><br />
<a href="http://img.1988m.com/404">http://img.1988m.com/404</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/nginx_x_domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>约会流程图</title>
		<link>http://www.lingye.net/blog/2010/05/yuehui/</link>
		<comments>http://www.lingye.net/blog/2010/05/yuehui/#comments</comments>
		<pubDate>Thu, 13 May 2010 02:04:29 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[图片]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=90</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lingye.net/blog/wp-content/uploads/2010/05/64029af7g86257cffa10b690.jpg"><img src="http://www.lingye.net/blog/wp-content/uploads/2010/05/64029af7g86257cffa10b690.jpg" alt="" title="64029af7g86257cffa10b&amp;690" width="500" height="819" class="alignnone size-full wp-image-91" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/yuehui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c# 的 HTTP操作</title>
		<link>http://www.lingye.net/blog/2010/05/csharp-http/</link>
		<comments>http://www.lingye.net/blog/2010/05/csharp-http/#comments</comments>
		<pubDate>Tue, 11 May 2010 03:54:00 +0000</pubDate>
		<dc:creator>lingye</dc:creator>
				<category><![CDATA[代码]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.lingye.net/blog/?p=81</guid>
		<description><![CDATA[
#region HTTP操作
        /// &#60;summary&#62;
        /// 模拟HTTP请求，如模拟请求来源，用户UA及Cookies
        /// &#60;/summary&#62;
        /// &#60;param name=&#34;url&#34;&#62;请求地址&#60;/param&#62;
        /// &#60;param name=&#34;encoding&#34;&#62;请求编码&#60;/param&#62;
       [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: csharp;">
#region HTTP操作
        /// &lt;summary&gt;
        /// 模拟HTTP请求，如模拟请求来源，用户UA及Cookies
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;url&quot;&gt;请求地址&lt;/param&gt;
        /// &lt;param name=&quot;encoding&quot;&gt;请求编码&lt;/param&gt;
        /// &lt;param name=&quot;requesttype&quot;&gt;请求类型&lt;/param&gt;
        /// /// &lt;param name=&quot;returntype&quot;&gt;返回类型&lt;/param&gt;
        /// &lt;param name=&quot;requestdata&quot;&gt;请求数据&lt;/param&gt;
        /// &lt;param name=&quot;referer&quot;&gt;请求来源&lt;/param&gt;
        /// &lt;param name=&quot;user_agent&quot;&gt;用户ua&lt;/param&gt;
        /// &lt;param name=&quot;cookiestr&quot;&gt;cookies，形如：&quot;uuauth=ok; ss=1;&quot;&lt;/param&gt;
        /// &lt;returns&gt;请求得到的html文本&lt;/returns&gt;
        public static HttpWebResponse MyHttpRequest(string url, string encoding, string requesttype, string returntype, string requestdata, string referer, string user_agent, string cookiestr)
        {
            try
            {
                HttpWebRequest myReq = (HttpWebRequest)HttpWebRequest.Create(url);
                myReq.Referer = referer;
                myReq.Method = requesttype;
                myReq.UserAgent = user_agent;
                myReq.ContentType = returntype;
                myReq.Headers.Add(HttpRequestHeader.Cookie, cookiestr);
                if (requesttype.ToLower() == &quot;post&quot;)
                {
                    myReq.ContentType = &quot;application/x-www-form-urlencoded&quot;;
                    myReq.Headers.Add(&quot;Cache-Control&quot;, &quot;no-cache&quot;);
                    byte[] bytes = Encoding.GetEncoding(encoding).GetBytes(requestdata);
                    myReq.ContentLength = bytes.Length;
                    Stream oStreamOut = myReq.GetRequestStream();
                    oStreamOut.Write(bytes, 0, bytes.Length);
                    oStreamOut.Close();
                }
                HttpWebResponse response = myReq.GetResponse() as HttpWebResponse;
                return response;
            }
            catch
            {
                return null;
            }
        }

        #endregion
</pre>
<p>调用</p>
<pre class="brush: csharp;">
                HttpWebResponse httpresponse = MyHttpRequest(&quot;http://owned.kaixin.com/getPhoto.do&quot;, &quot;utf-8&quot;, &quot;post&quot;, &quot;text/html&quot;, &quot;id=703953558&amp;pid=703354897&quot;, &quot;http://owned.kaixin.com/getPhoto.do&quot;, &quot;Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7&quot;, cookiestr);
                StreamReader outstr = new StreamReader(httpresponse.GetResponseStream(), Encoding.GetEncoding(&quot;utf-8&quot;));
                string htmltext = outstr.ReadToEnd();
                outstr.Dispose();
                httpresponse.Close();
</pre>
<p>基于以上函数的一个小工具（源码）：<br />
<a href="http://www.lingye.net//blog/wp-content/uploads/LYHTTPHelper.zip">http://www.lingye.net//blog/wp-content/uploads/LYHTTPHelper.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingye.net/blog/2010/05/csharp-http/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
