<?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.zhangjingwei.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhangjingwei.com</link>
	<description>分享互联网</description>
	<lastBuildDate>Thu, 11 Mar 2010 08:03:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>做技术能做多久？</title>
		<link>http://www.zhangjingwei.com/archives/%e5%81%9a%e6%8a%80%e6%9c%af%e9%9c%80%e8%a6%81%e6%9c%89%e6%97%b6%e9%97%b4%e9%99%90%e5%88%b6%e4%b9%88%ef%bc%9f/</link>
		<comments>http://www.zhangjingwei.com/archives/%e5%81%9a%e6%8a%80%e6%9c%af%e9%9c%80%e8%a6%81%e6%9c%89%e6%97%b6%e9%97%b4%e9%99%90%e5%88%b6%e4%b9%88%ef%bc%9f/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 13:43:46 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[北京2010]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1406</guid>
		<description><![CDATA[做技术能做多久？每年开春，每年都可以在各种论坛中看到这样的问题。
为什么总能看见这种一年一次的，年年舒畅的问题呢？
大抵扫了很多帖子，仿佛是因为有的人觉得做技术不长久是因为身体的问题，不能像年轻人一样加班加点的熬夜；有的人考虑到结婚生子买房子买车等等一大堆烂屁眼的事情，仅仅依靠做技术无法满足他们的夙愿。
在中国，人们总是很浮躁，一切都以钱为最先衡量的标准，是的，中国人命苦，上有老下有小中间有房子两旁有大嫂，每个月还要给社会主义添砖加瓦，实在麻烦，因此在中国“钱”为万物之本是可以理解的。
回过头来，也就不难解释为何年年都可以看见这种烂屁眼的问题了。    
可能有的人觉得我很粗俗，为何把这种问题形容为烂屁眼呢？呵呵，主要是因为我觉得有很多不适合做技术的人来做了技术，并且每年都要把这个问题发出来，让技术氛围因钱浮躁，所以我说它烂屁眼。
其实，如果你热爱技术，我想技术会给你带来钱，但反过来说，如果你热爱钱，技术不一定能给你带来钱，我建议你更应该去抢银行。
但凡为了什么去做什么不一定能得到什么。
呵呵，自己也不知道说了些什么，大抵自己也在烂屁眼吧。
不过，真心希望不要年年再看到这种烂屁眼的问题了，下次换一个有新意的，比如说“做技术能找到小三么”，“做技术的怎么才可以有外遇”或者是“做技术如何才可以不得痔疮”？对于这些，我会非常感兴趣阅读的。



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>做技术能做多久？每年开春，每年都可以在各种论坛中看到这样的问题。</p>
<p>为什么总能看见这种一年一次的，年年舒畅的问题呢？</p>
<p>大抵扫了很多帖子，仿佛是因为有的人觉得做技术不长久是因为身体的问题，不能像年轻人一样加班加点的熬夜；有的人考虑到结婚生子买房子买车等等一大堆烂屁眼的事情，仅仅依靠做技术无法满足他们的夙愿。</p>
<p>在中国，人们总是很浮躁，一切都以钱为最先衡量的标准，是的，中国人命苦，上有老下有小中间有房子两旁有大嫂，每个月还要给社会主义添砖加瓦，实在麻烦，因此在中国“钱”为万物之本是可以理解的。</p>
<p>回过头来，也就不难解释为何年年都可以看见这种烂屁眼的问题了。   <img src='http://www.zhangjingwei.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>可能有的人觉得我很粗俗，为何把这种问题形容为烂屁眼呢？呵呵，主要是因为我觉得有很多不适合做技术的人来做了技术，并且每年都要把这个问题发出来，让技术氛围因钱浮躁，所以我说它烂屁眼。</p>
<p>其实，如果你热爱技术，我想技术会给你带来钱，但反过来说，如果你热爱钱，技术不一定能给你带来钱，我建议你更应该去抢银行。</p>
<p>但凡为了什么去做什么不一定能得到什么。</p>
<p>呵呵，自己也不知道说了些什么，大抵自己也在烂屁眼吧。</p>
<p>不过，真心希望不要年年再看到这种烂屁眼的问题了，下次换一个有新意的，比如说“做技术能找到小三么”，“做技术的怎么才可以有外遇”或者是“做技术如何才可以不得痔疮”？对于这些，我会非常感兴趣阅读的。</p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E5%81%9A%E6%8A%80%E6%9C%AF%E8%83%BD%E5%81%9A%E5%A4%9A%E4%B9%85%EF%BC%9F&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e5%2581%259a%25e6%258a%2580%25e6%259c%25af%25e9%259c%2580%25e8%25a6%2581%25e6%259c%2589%25e6%2597%25b6%25e9%2597%25b4%25e9%2599%2590%25e5%2588%25b6%25e4%25b9%2588%25ef%25bc%259f%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e5%2581%259a%25e6%258a%2580%25e6%259c%25af%25e9%259c%2580%25e8%25a6%2581%25e6%259c%2589%25e6%2597%25b6%25e9%2597%25b4%25e9%2599%2590%25e5%2588%25b6%25e4%25b9%2588%25ef%25bc%259f%2F&title=%E5%81%9A%E6%8A%80%E6%9C%AF%E8%83%BD%E5%81%9A%E5%A4%9A%E4%B9%85%EF%BC%9F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e5%2581%259a%25e6%258a%2580%25e6%259c%25af%25e9%259c%2580%25e8%25a6%2581%25e6%259c%2589%25e6%2597%25b6%25e9%2597%25b4%25e9%2599%2590%25e5%2588%25b6%25e4%25b9%2588%25ef%25bc%259f%2F&title=%E5%81%9A%E6%8A%80%E6%9C%AF%E8%83%BD%E5%81%9A%E5%A4%9A%E4%B9%85%EF%BC%9F&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e5%2581%259a%25e6%258a%2580%25e6%259c%25af%25e9%259c%2580%25e8%25a6%2581%25e6%259c%2589%25e6%2597%25b6%25e9%2597%25b4%25e9%2599%2590%25e5%2588%25b6%25e4%25b9%2588%25ef%25bc%259f%2F&amp;title=%E5%81%9A%E6%8A%80%E6%9C%AF%E8%83%BD%E5%81%9A%E5%A4%9A%E4%B9%85%EF%BC%9F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E5%81%9A%E6%8A%80%E6%9C%AF%E8%83%BD%E5%81%9A%E5%A4%9A%E4%B9%85%EF%BC%9F&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e5%2581%259a%25e6%258a%2580%25e6%259c%25af%25e9%259c%2580%25e8%25a6%2581%25e6%259c%2589%25e6%2597%25b6%25e9%2597%25b4%25e9%2599%2590%25e5%2588%25b6%25e4%25b9%2588%25ef%25bc%259f%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/%e5%81%9a%e6%8a%80%e6%9c%af%e9%9c%80%e8%a6%81%e6%9c%89%e6%97%b6%e9%97%b4%e9%99%90%e5%88%b6%e4%b9%88%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>十二年，虎年来了</title>
		<link>http://www.zhangjingwei.com/archives/reset/</link>
		<comments>http://www.zhangjingwei.com/archives/reset/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 09:22:00 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[北京2010]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[虎]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1382</guid>
		<description><![CDATA[
十二生肖就像一个钟表的轮盘，在零点的时刻开始，在零点的时刻结束，每一分，每一秒，表盘上都在滴滴答答的演绎着或美好或悲伤，或惊喜或忧愁的故事。
过去的12年，是一个纯情的年代，在表盘归零的时候，恍然发现，这种纯情早以被遗弃，世界在变化，我们每一个人也在变化。
人如宝剑，少年时是随心所欲剑从心生，我们在那个年代挥舞着，挥霍着，虽然毫无章法，但也能不时画出几下凌厉的招式，但终究只是“几下”。
如今，归零时刻，我默默的磨剑，我知道了要想仗剑行天涯，必要十年磨一剑！
过去的十二年，江湖没有哥的传说；将来的十二年，江湖将会流传哥的传说。
12年，一个归零，12年，一个启始。
十二年，虎年来了。




加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<div style="float:left;margin:0 5px 5px 0;"><img class="alignnone size-full wp-image-1389" title="2010年焰花" src="http://www.zhangjingwei.com/wp-content/uploads/2010/02/01.jpg" alt="2010年焰花" width="290" height="236" /></div>
<p>十二生肖就像一个钟表的轮盘，在零点的时刻开始，在零点的时刻结束，每一分，每一秒，表盘上都在滴滴答答的演绎着或美好或悲伤，或惊喜或忧愁的故事。</p>
<p>过去的12年，是一个纯情的年代，在表盘归零的时候，恍然发现，这种纯情早以被遗弃，世界在变化，我们每一个人也在变化。</p>
<p>人如宝剑，少年时是随心所欲剑从心生，我们在那个年代挥舞着，挥霍着，虽然毫无章法，但也能不时画出几下凌厉的招式，但终究只是“几下”。</p>
<p>如今，归零时刻，我默默的磨剑，我知道了要想仗剑行天涯，必要十年磨一剑！</p>
<p>过去的十二年，江湖没有哥的传说；将来的十二年，江湖将会流传哥的传说。</p>
<p>12年，一个归零，12年，一个启始。</p>
<p>十二年，虎年来了。</p>
<div style="clear:both"></div>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E5%8D%81%E4%BA%8C%E5%B9%B4%EF%BC%8C%E8%99%8E%E5%B9%B4%E6%9D%A5%E4%BA%86&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Freset%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Freset%2F&title=%E5%8D%81%E4%BA%8C%E5%B9%B4%EF%BC%8C%E8%99%8E%E5%B9%B4%E6%9D%A5%E4%BA%86?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Freset%2F&title=%E5%8D%81%E4%BA%8C%E5%B9%B4%EF%BC%8C%E8%99%8E%E5%B9%B4%E6%9D%A5%E4%BA%86&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Freset%2F&amp;title=%E5%8D%81%E4%BA%8C%E5%B9%B4%EF%BC%8C%E8%99%8E%E5%B9%B4%E6%9D%A5%E4%BA%86?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E5%8D%81%E4%BA%8C%E5%B9%B4%EF%BC%8C%E8%99%8E%E5%B9%B4%E6%9D%A5%E4%BA%86&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Freset%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rel与CSS的联合使用</title>
		<link>http://www.zhangjingwei.com/archives/rel-licensecss/</link>
		<comments>http://www.zhangjingwei.com/archives/rel-licensecss/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:13:47 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[rel]]></category>
		<category><![CDATA[sns]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1372</guid>
		<description><![CDATA[Rel-License 是微格式的开发标准之一，简单的说就是通过给引用标签（通常是链接）加上REL属性，来标明所引用链接/数据与文章的关系。
Wordpress很早就引入了rel标准，在我们添加新链接的时候就可以看到“关系”属性。
早期某些社交类搜索引擎可根据这个标签来判断人与人之间的关系，但它对网页开发来说并无意义，值得庆幸的是随着浏览器的逐渐升级，我们可以利用CSS属性选择器以及REL来做一些有意思的功能。
这是一段带有REL属性的HTML结构。

&#60;ul&#62;
&#60;li&#62;&#60;a href=&#34;#&#34; rel=&#34;civil&#34;&#62;小李&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;#&#34; rel=&#34;party&#34;&#62;局长&#60;/a&#62;&#60;/li&#62;
&#60;/ul&#62;

页面中他呈现这个样子

因为局长和小李是两个不同的阶级，所以我们应该有区分他们，我打算在小李和局长后面增加两张图片让他表现出这个样式。

过去，我们需要在两个链接标签上增加不同的class来实现这种样式，并且我们需要针对不同的样式书写不同的CSS

 .c,.b &#123;background:url&#40;01.png&#41; right center no-repeat;&#125;
 .b &#123;background-image:url&#40;02.png&#41;;&#125;


&#60;ul&#62;
&#60;li&#62;&#60;a href=&#34;#&#34; rel=&#34;civil&#34; class=&#34;c&#34;&#62;小李&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;#&#34; rel=&#34;party&#34; class=&#34;b&#34;&#62;局长&#60;/a&#62;&#60;/li&#62;
&#60;/ul&#62;

现在，我们可以利用REL属性以及属性选择器来完成这个工作。

a&#91;rel~=&#34;civil&#34;&#93;&#123;background:url&#40;01.png&#41; right center no-repeat;&#125;
a&#91;rel~=&#34;party&#34;&#93;&#123;background:url&#40;02.png&#41; right center no-repeat;&#125;

同时，我们的HTML结构也可以剔除那些多余的样式了。

&#60;ul&#62;
&#60;li&#62;&#60;a href=&#34;#&#34; rel=&#34;civil&#34;&#62;小李&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;#&#34; rel=&#34;party&#34;&#62;局长&#60;/a&#62;&#60;/li&#62;
&#60;/ul&#62;

另外:ie6不支持属性选择器，但我们可以用JS来修复这个问题。



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p><a href="http://microformats.org/wiki/rel-license">Rel-License</a> 是微格式的开发标准之一，简单的说就是通过给引用标签（通常是链接）加上REL属性，来标明所引用链接/数据与文章的关系。</p>
<p>Wordpress很早就引入了rel标准，在我们添加新链接的时候就可以看到“关系”属性。</p>
<p>早期某些社交类搜索引擎可根据这个标签来判断人与人之间的关系，但它对网页开发来说并无意义，值得庆幸的是随着浏览器的逐渐升级，我们可以利用CSS属性选择器以及REL来做一些有意思的功能。</p>
<p>这是一段带有REL属性的HTML结构。</p>

<div class="wp_syntax"><div class="code"><pre class="xhtml" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;civil&quot;</span>&gt;</span>小李<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;party&quot;</span>&gt;</span>局长<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>页面中他呈现这个样子<br />
<a href="http://www.zhangjingwei.com/wp-content/uploads/2010/02/e1.png"><img src="http://www.zhangjingwei.com/wp-content/uploads/2010/02/e1.png" alt="example_01" title="example_01" width="238" height="148" class="alignnone size-full wp-image-1377" /></a></p>
<p>因为局长和小李是两个不同的阶级，所以我们应该有区分他们，我打算在小李和局长后面增加两张图片让他表现出这个样式。<br />
<a href="http://www.zhangjingwei.com/wp-content/uploads/2010/02/e2.png"><img src="http://www.zhangjingwei.com/wp-content/uploads/2010/02/e2.png" alt="e2" title="e2" width="169" height="115" class="alignnone size-full wp-image-1379" /></a></p>
<p>过去，我们需要在两个链接标签上增加不同的class来实现这种样式，并且我们需要针对不同的样式书写不同的CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"> <span style="color: #6666ff;">.c</span><span style="color: #00AA00;">,</span><span style="color: #6666ff;">.b</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>01.png<span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #993333;">center</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
 <span style="color: #6666ff;">.b</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>02.png<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="xhtml" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;civil&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;c&quot;</span>&gt;</span>小李<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;party&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;b&quot;</span>&gt;</span>局长<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>现在，我们可以利用REL属性以及属性选择器来完成这个工作。</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #00AA00;">&#91;</span>rel~<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;civil&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>01.png<span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #993333;">center</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
a<span style="color: #00AA00;">&#91;</span>rel~<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;party&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>02.png<span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #993333;">center</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>同时，我们的HTML结构也可以剔除那些多余的样式了。</p>

<div class="wp_syntax"><div class="code"><pre class="xhtml" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;civil&quot;</span>&gt;</span>小李<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;party&quot;</span>&gt;</span>局长<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>另外:ie6不支持属性选择器，但我们可以用JS来修复这个问题。</p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=Rel%E4%B8%8ECSS%E7%9A%84%E8%81%94%E5%90%88%E4%BD%BF%E7%94%A8&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Frel-licensecss%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Frel-licensecss%2F&title=Rel%E4%B8%8ECSS%E7%9A%84%E8%81%94%E5%90%88%E4%BD%BF%E7%94%A8?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Frel-licensecss%2F&title=Rel%E4%B8%8ECSS%E7%9A%84%E8%81%94%E5%90%88%E4%BD%BF%E7%94%A8&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Frel-licensecss%2F&amp;title=Rel%E4%B8%8ECSS%E7%9A%84%E8%81%94%E5%90%88%E4%BD%BF%E7%94%A8?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Rel%E4%B8%8ECSS%E7%9A%84%E8%81%94%E5%90%88%E4%BD%BF%E7%94%A8&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Frel-licensecss%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/rel-licensecss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Luhn 算法的Perl实现</title>
		<link>http://www.zhangjingwei.com/archives/perl-luhn/</link>
		<comments>http://www.zhangjingwei.com/archives/perl-luhn/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 17:09:32 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Luhn]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1341</guid>
		<description><![CDATA[Luhn 算法主要应用在校键数字卡号的合法性，例如我们常见的银行卡，信用卡，ICCID号等等。
Luhn 算法简单的说，既从低位开始，基数位相加的和，与处理过的（将当前偶数位数字×2，若结果大于9，则将2位数字相加得到个位数，若结果小于等于9，直接记录这个值）偶数位相加的和的总和，若可被10整除，则合法，反之则不合法。
算法如下：

#!/usr/bin/perl
use strict;
use warnings;
&#160;
#定义一个卡号
my $cardNum = &#34;4367421590502289184&#34;;
&#160;
sub luhnCheckNum&#123;
	my $oddSum = 0;
	my $evenSum = 0;
	my $isOdd = 1;
	for&#40;my $i=length&#40;$_&#91;0&#93;&#41;-1; $i&#62;=0; $i--&#41;&#123;
		my $iNum = substr&#40;$_&#91;0&#93;,$i,1&#41;;
		if&#40;$isOdd&#41;&#123;
			$oddSum += $iNum;
		&#125;else&#123;
			$iNum = $iNum*2;
			if&#40;$iNum&#62;9&#41;&#123;
				my @iNumArry = split&#40;//, $iNum&#41;;
				$iNum = $iNumArry&#91;0&#93;+$iNumArry&#91;1&#93;;
			&#125;
			$evenSum += $iNum;
		&#125;
		$isOdd = !$isOdd;
	&#125;
	return &#40;&#40;$evenSum + $oddSum&#41;%10==0&#41;
&#125;
&#160;
if&#40;luhnCheckNum&#40;$cardNum&#41;&#41;&#123;
	print &#34;您输入卡号合法&#34;;	
&#125;else&#123;
	print &#34;您输入的卡号不合法&#34;;
&#125;




加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>Luhn 算法主要应用在校键数字卡号的合法性，例如我们常见的银行卡，信用卡，ICCID号等等。</p>
<p>Luhn 算法简单的说，既从低位开始，基数位相加的和，与处理过的（将当前偶数位数字×2，若结果大于9，则将2位数字相加得到个位数，若结果小于等于9，直接记录这个值）偶数位相加的和的总和，若可被10整除，则合法，反之则不合法。</p>
<p>算法如下：</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> warnings<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#定义一个卡号</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$cardNum</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;4367421590502289184&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">sub</span> luhnCheckNum<span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$oddSum</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$evenSum</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$isOdd</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$i</span><span style="color: #339933;">=</span><span style="color: #000066;">length</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$_</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #0000ff;">$i</span><span style="color: #339933;">&gt;=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #0000ff;">$i</span><span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$iNum</span> <span style="color: #339933;">=</span> <span style="color: #000066;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$_</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$isOdd</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #0000ff;">$oddSum</span> <span style="color: #339933;">+=</span> <span style="color: #0000ff;">$iNum</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
			<span style="color: #0000ff;">$iNum</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$iNum</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$iNum</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@iNumArry</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">//,</span> <span style="color: #0000ff;">$iNum</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #0000ff;">$iNum</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$iNumArry</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">$iNumArry</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #0000ff;">$evenSum</span> <span style="color: #339933;">+=</span> <span style="color: #0000ff;">$iNum</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #0000ff;">$isOdd</span> <span style="color: #339933;">=</span> <span style="color: #339933;">!</span><span style="color: #0000ff;">$isOdd</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$evenSum</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">$oddSum</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">%</span>10<span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>luhnCheckNum<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$cardNum</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;您输入卡号合法&quot;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;您输入的卡号不合法&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>




加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=Luhn%20%E7%AE%97%E6%B3%95%E7%9A%84Perl%E5%AE%9E%E7%8E%B0&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-luhn%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-luhn%2F&title=Luhn%20%E7%AE%97%E6%B3%95%E7%9A%84Perl%E5%AE%9E%E7%8E%B0?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-luhn%2F&title=Luhn%20%E7%AE%97%E6%B3%95%E7%9A%84Perl%E5%AE%9E%E7%8E%B0&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-luhn%2F&amp;title=Luhn%20%E7%AE%97%E6%B3%95%E7%9A%84Perl%E5%AE%9E%E7%8E%B0?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Luhn%20%E7%AE%97%E6%B3%95%E7%9A%84Perl%E5%AE%9E%E7%8E%B0&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-luhn%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/perl-luhn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl 压缩 Js</title>
		<link>http://www.zhangjingwei.com/archives/perl-compression-js/</link>
		<comments>http://www.zhangjingwei.com/archives/perl-compression-js/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 10:54:09 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[正则]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1335</guid>
		<description><![CDATA[
sub compress &#123;
	my &#40;$codevalue&#41;=@_;
	$codevalue =~ s/^\s+//;
	$codevalue =~ s/&#60;!--(.*?)--&#62;//g;
	$codevalue =~ s/(http&#124;https):\/\//$1:~~/g;
	$codevalue =~ s/\s*\/\/.*?\n/\n/g;
	$codevalue =~ s/(http&#124;https):~~/$1:\/\//g;
	$codevalue =~ s/(^&#124; &#124;\t)\/\/.*$//g;
	$codevalue =~ s!/\*.*?\*/\s*!!sg;
	$codevalue =~ s/(;&#124;\n)\t+/$1/g;
	$codevalue =~ s/\n{2,}/\n/g;
	$codevalue =~ s/(if&#124;else)\s*(\(.*?\))?\s*([\w\{])/$1$2$3/sg;
	$codevalue =~ s/[ \t]*([\=\,\+\-\*\&#38;\&#124;\:\?\&#60; \&#62;\{\}\(\)\[\]]+)[ \t]*/$1/g;
	$codevalue =~ s/^\s*\n//mg;
	$codevalue =~ s/(;)\s*/$1/g;
	$codevalue =~ s/(\r\n&#124;\n)//g;
	$codevalue =~ s/({)(\s*?)(\S)/$1$3/g;
	return $codevalue;
&#125;




加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">sub</span> compress <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$codevalue</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">@_</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/^\s+//</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/&lt;!--(.*?)--&gt;//g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(http|https):\/\//$1:~~/g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/\s*\/\/.*?\n/\n/g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(http|https):~~/$1:\/\//g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(^| |\t)\/\/.*$//g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #000066;">s</span><span style="color: #339933;">!/</span>\<span style="color: #339933;">*.*?</span>\<span style="color: #339933;">*/</span><span style="color: #0000ff;">\s</span><span style="color: #339933;">*!!</span>sg<span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(;|\n)\t+/$1/g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/\n{2,}/\n/g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(if|else)\s*(\(.*?\))?\s*([\w\{])/$1$2$3/sg</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/[ \t]*([\=\,\+\-\*\&amp;\|\:\?\&lt; \&gt;\{\}\(\)\[\]]+)[ \t]*/$1/g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/^\s*\n//mg</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(;)\s*/$1/g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(\r\n|\n)//g</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$codevalue</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/({)(\s*?)(\S)/$1$3/g</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">return</span> <span style="color: #0000ff;">$codevalue</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>




加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=Perl%20%E5%8E%8B%E7%BC%A9%20Js&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-compression-js%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-compression-js%2F&title=Perl%20%E5%8E%8B%E7%BC%A9%20Js?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-compression-js%2F&title=Perl%20%E5%8E%8B%E7%BC%A9%20Js&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-compression-js%2F&amp;title=Perl%20%E5%8E%8B%E7%BC%A9%20Js?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Perl%20%E5%8E%8B%E7%BC%A9%20Js&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fperl-compression-js%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/perl-compression-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>珍惜现在</title>
		<link>http://www.zhangjingwei.com/archives/%e7%8f%8d%e6%83%9c%e7%8e%b0%e5%9c%a8/</link>
		<comments>http://www.zhangjingwei.com/archives/%e7%8f%8d%e6%83%9c%e7%8e%b0%e5%9c%a8/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 15:54:51 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[北京2009]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1331</guid>
		<description><![CDATA[又是一年，又是一篇2009年经帖。
马上就要2010年了，如果要给自己的2009做一个总结，可以用四个字来形容：“珍惜现在”。
2008年的时候我有什么呢，我有这些。

2009年，我还有这些么？不，几乎都不在了。
佛说“菩提本无树,明镜亦非台,本来无一物,何处惹尘埃”，我说是。
2009年我没有给自己留下相片的记录。也许2010年12月的时候，连博文都不会有了，如佛说，本来无一物。
2009，就这样了。



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>又是一年，又是一篇2009年经帖。</p>
<p>马上就要2010年了，如果要给自己的2009做一个总结，可以用四个字来形容：“珍惜现在”。</p>
<p>2008年的时候我有什么呢，我有这些。</p>
<p><a href="http://www.zhangjingwei.com/wp-content/uploads/2009/12/DSC_0133.jpg"><img class="alignnone size-medium wp-image-1332" title="DSC_0133" src="http://www.zhangjingwei.com/wp-content/uploads/2009/12/DSC_0133-450x325.jpg" alt="DSC_0133" width="450" height="325" /></a></p>
<p>2009年，我还有这些么？不，几乎都不在了。</p>
<p>佛说“菩提本无树,明镜亦非台,本来无一物,何处惹尘埃”，我说是。</p>
<p>2009年我没有给自己留下相片的记录。也许2010年12月的时候，连博文都不会有了，如佛说，本来无一物。</p>
<p>2009，就这样了。</p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E7%8F%8D%E6%83%9C%E7%8E%B0%E5%9C%A8&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%258f%258d%25e6%2583%259c%25e7%258e%25b0%25e5%259c%25a8%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%258f%258d%25e6%2583%259c%25e7%258e%25b0%25e5%259c%25a8%2F&title=%E7%8F%8D%E6%83%9C%E7%8E%B0%E5%9C%A8?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%258f%258d%25e6%2583%259c%25e7%258e%25b0%25e5%259c%25a8%2F&title=%E7%8F%8D%E6%83%9C%E7%8E%B0%E5%9C%A8&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%258f%258d%25e6%2583%259c%25e7%258e%25b0%25e5%259c%25a8%2F&amp;title=%E7%8F%8D%E6%83%9C%E7%8E%B0%E5%9C%A8?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E7%8F%8D%E6%83%9C%E7%8E%B0%E5%9C%A8&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%258f%258d%25e6%2583%259c%25e7%258e%25b0%25e5%259c%25a8%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/%e7%8f%8d%e6%83%9c%e7%8e%b0%e5%9c%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>也说说语义</title>
		<link>http://www.zhangjingwei.com/archives/%e4%b9%9f%e8%af%b4%e8%af%b4%e8%af%ad%e4%b9%89/</link>
		<comments>http://www.zhangjingwei.com/archives/%e4%b9%9f%e8%af%b4%e8%af%b4%e8%af%ad%e4%b9%89/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 16:46:09 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[语义]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1319</guid>
		<description><![CDATA[搞前端应该对语义化并不陌生，每天都在说语义化，可什么是语义化，语义化究竟能给我们带来什么好处？参加web标准交流会的时候我向各位同学提出了我的疑问。
按照大部分同学的意思，语义化主要是对结构的语义，对于段落我们用P，对于结构块，我们用div，对于主标题，我们用h1，这样做可以更适合更多的客户端（页面不乱？），可以适合更多人群（让阅读器正确的读出页面，让盲人也能看），让计算机知道这里是标题是段落是列表。
那按照这样说，其实只要是把标签写正确就好，标签正确了结构就正确了，结构正确了也就语义了。
话说的没错，可我认为现在谈这种语义还为时过早，语义应该web的语义，让web页面“可以说出来”才是语义。
在html5中，有些很有意思的标签：
canvas，audio，video
section，header，footer，nav，article，aside，figure
我觉得它们更像“语义”，通过canvas，我们可以告诉程序，这里是一张图，通过audio，我们可以告诉程序，这里是一段声音。
语义化的作用是否应该认为是为了让应用程序能够理解此数据的含义，藉此可将这部分数据剥离出来，并可以通过其他的方式来使用。
让我们幻想一下当计算机读取到下面的代码时就会在早上7点叫我起床
&#60;time&#62;07:00&#60;/time&#62;
&#60;audio&#62;我是小蜜蜂&#60;/audio&#62;
当然你也可以不在7点起床，甚至可以用其他的歌曲而不用我是小蜜蜂飞到花从中这歌。
语义的关键还是在于可以告诉计算机这块数据我要干什么，其实这更像是我们用js读xml，并从中取出来有用的数据提供给用户，这里只是说他自动了，不需要人工再去做了。
就目前的情况来说，xhtml是不可能做到这一点的。
也有提出了RDF的东东，不过我没有弄明白这个东西怎么用，它看上去是一种xml的衍生体，并且要单独的去开发程序，估计很难得到普及。
所以现在很多文章不断的提出语义我个人觉得是太早了，太过了，这些理论的概念只能让初学者更加迷茫，我们只要做到标签写对酒可以了，现在不断谈语义不是时候，只会让人更加费解。
呵呵，期待HTML5。
最后打个广告：&#8221;web标准化交流会&#8220;，希望大家多多参与，共同促进前端的发展。



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>搞前端应该对语义化并不陌生，每天都在说语义化，可什么是语义化，语义化究竟能给我们带来什么好处？参加web标准交流会的时候我向各位同学提出了我的疑问。</p>
<p>按照大部分同学的意思，语义化主要是对结构的语义，对于段落我们用P，对于结构块，我们用div，对于主标题，我们用h1，这样做可以更适合更多的客户端（页面不乱？），可以适合更多人群（让阅读器正确的读出页面，让盲人也能看），让计算机知道这里是标题是段落是列表。</p>
<p>那按照这样说，其实只要是把标签写正确就好，标签正确了结构就正确了，结构正确了也就语义了。</p>
<p>话说的没错，可我认为现在谈这种语义还为时过早，语义应该web的语义，让web页面“可以说出来”才是语义。</p>
<p>在html5中，有些很有意思的标签：</p>
<p>canvas，audio，video</p>
<p>section，header，footer，nav，article，aside，figure</p>
<p>我觉得它们更像“语义”，通过canvas，我们可以告诉程序，这里是一张图，通过audio，我们可以告诉程序，这里是一段声音。</p>
<p>语义化的<strong><span style="color: #ff0000;">作用</span></strong>是否应该认为是为了让应用程序能够理解此数据的含义，<strong>藉此可将这部分数据剥离出来，并可以通过其他的方式来使用</strong>。</p>
<p>让我们幻想一下当计算机读取到下面的代码时就会在早上7点叫我起床</p>
<p>&lt;time&gt;07:00&lt;/time&gt;<br />
&lt;audio&gt;我是小蜜蜂&lt;/audio&gt;</p>
<p>当然你也可以不在7点起床，甚至可以用其他的歌曲而不用我是小蜜蜂飞到花从中这歌。</p>
<p>语义的关键还是在于可以告诉计算机这块数据我要干什么，其实这更像是我们用js读xml，并从中取出来有用的数据提供给用户，这里只是说他自动了，不需要人工再去做了。</p>
<p>就目前的情况来说，xhtml是不可能做到这一点的。</p>
<p>也有提出了RDF的东东，不过我没有弄明白这个东西怎么用，它看上去是一种xml的衍生体，并且要单独的去开发程序，估计很难得到普及。</p>
<p><strong>所以现在很多文章不断的提出语义我个人觉得是太早了，太过了，这些理论的概念只能让初学者更加迷茫，我们只要做到标签写对酒可以了，现在不断谈语义不是时候，只会让人更加费解。</strong></p>
<p>呵呵，期待HTML5。</p>
<p>最后打个广告：&#8221;<a href="http://www.w3ctech.com" target="_blank">web标准化交流会</a>&#8220;，希望大家多多参与，共同促进前端的发展。</p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E4%B9%9F%E8%AF%B4%E8%AF%B4%E8%AF%AD%E4%B9%89&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e4%25b9%259f%25e8%25af%25b4%25e8%25af%25b4%25e8%25af%25ad%25e4%25b9%2589%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e4%25b9%259f%25e8%25af%25b4%25e8%25af%25b4%25e8%25af%25ad%25e4%25b9%2589%2F&title=%E4%B9%9F%E8%AF%B4%E8%AF%B4%E8%AF%AD%E4%B9%89?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e4%25b9%259f%25e8%25af%25b4%25e8%25af%25b4%25e8%25af%25ad%25e4%25b9%2589%2F&title=%E4%B9%9F%E8%AF%B4%E8%AF%B4%E8%AF%AD%E4%B9%89&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e4%25b9%259f%25e8%25af%25b4%25e8%25af%25b4%25e8%25af%25ad%25e4%25b9%2589%2F&amp;title=%E4%B9%9F%E8%AF%B4%E8%AF%B4%E8%AF%AD%E4%B9%89?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E4%B9%9F%E8%AF%B4%E8%AF%B4%E8%AF%AD%E4%B9%89&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e4%25b9%259f%25e8%25af%25b4%25e8%25af%25b4%25e8%25af%25ad%25e4%25b9%2589%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/%e4%b9%9f%e8%af%b4%e8%af%b4%e8%af%ad%e4%b9%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>真不容易，又可以访问了</title>
		<link>http://www.zhangjingwei.com/archives/%e7%9c%9f%e4%b8%8d%e5%ae%b9%e6%98%93%ef%bc%8c%e5%8f%88%e5%8f%af%e4%bb%a5%e8%ae%bf%e9%97%ae%e4%ba%86/</link>
		<comments>http://www.zhangjingwei.com/archives/%e7%9c%9f%e4%b8%8d%e5%ae%b9%e6%98%93%ef%bc%8c%e5%8f%88%e5%8f%af%e4%bb%a5%e8%ae%bf%e9%97%ae%e4%ba%86/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 14:41:11 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[互联网观察]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1317</guid>
		<description><![CDATA[移动机房查，封网，在Meyu的帮助下，我迁往了外高桥电信。
随着查H类网站力度的加大，外高桥接着封，接着查。
不容易，真的不容易。
20年弹指一挥间。20年了。我是说我的年龄，别多想。



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>移动机房查，封网，在Meyu的帮助下，我迁往了外高桥电信。</p>
<p>随着查H类网站力度的加大，外高桥接着封，接着查。</p>
<p>不容易，真的不容易。</p>
<p>20年弹指一挥间。20年了。我是说我的年龄，别多想。</p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E7%9C%9F%E4%B8%8D%E5%AE%B9%E6%98%93%EF%BC%8C%E5%8F%88%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E4%BA%86&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%259c%259f%25e4%25b8%258d%25e5%25ae%25b9%25e6%2598%2593%25ef%25bc%258c%25e5%258f%2588%25e5%258f%25af%25e4%25bb%25a5%25e8%25ae%25bf%25e9%2597%25ae%25e4%25ba%2586%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%259c%259f%25e4%25b8%258d%25e5%25ae%25b9%25e6%2598%2593%25ef%25bc%258c%25e5%258f%2588%25e5%258f%25af%25e4%25bb%25a5%25e8%25ae%25bf%25e9%2597%25ae%25e4%25ba%2586%2F&title=%E7%9C%9F%E4%B8%8D%E5%AE%B9%E6%98%93%EF%BC%8C%E5%8F%88%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E4%BA%86?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%259c%259f%25e4%25b8%258d%25e5%25ae%25b9%25e6%2598%2593%25ef%25bc%258c%25e5%258f%2588%25e5%258f%25af%25e4%25bb%25a5%25e8%25ae%25bf%25e9%2597%25ae%25e4%25ba%2586%2F&title=%E7%9C%9F%E4%B8%8D%E5%AE%B9%E6%98%93%EF%BC%8C%E5%8F%88%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E4%BA%86&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%259c%259f%25e4%25b8%258d%25e5%25ae%25b9%25e6%2598%2593%25ef%25bc%258c%25e5%258f%2588%25e5%258f%25af%25e4%25bb%25a5%25e8%25ae%25bf%25e9%2597%25ae%25e4%25ba%2586%2F&amp;title=%E7%9C%9F%E4%B8%8D%E5%AE%B9%E6%98%93%EF%BC%8C%E5%8F%88%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E4%BA%86?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E7%9C%9F%E4%B8%8D%E5%AE%B9%E6%98%93%EF%BC%8C%E5%8F%88%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E4%BA%86&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%259c%259f%25e4%25b8%258d%25e5%25ae%25b9%25e6%2598%2593%25ef%25bc%258c%25e5%258f%2588%25e5%258f%25af%25e4%25bb%25a5%25e8%25ae%25bf%25e9%2597%25ae%25e4%25ba%2586%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/%e7%9c%9f%e4%b8%8d%e5%ae%b9%e6%98%93%ef%bc%8c%e5%8f%88%e5%8f%af%e4%bb%a5%e8%ae%bf%e9%97%ae%e4%ba%86/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>哥这次有尚方宝剑不怕跨省追捕了吗？！</title>
		<link>http://www.zhangjingwei.com/archives/%e8%bf%98%e6%98%af%e6%80%95-%e6%af%95%e7%ab%9fmao%e5%b7%b2%e8%b5%b0/</link>
		<comments>http://www.zhangjingwei.com/archives/%e8%bf%98%e6%98%af%e6%80%95-%e6%af%95%e7%ab%9fmao%e5%b7%b2%e8%b5%b0/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 10:15:12 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[前端技术]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1313</guid>
		<description><![CDATA[哥这次有尚方宝剑不怕跨省追捕了吗？！
早几年,在河南省一个地方要修飞机场,事先不给农民安排好,没有说清道理,就强迫人家搬家。那个庄的农民说,你拿根长棍子去拨树上雀儿的巢,把它搞下来,雀儿也要叫几声。邓小平你也有一个巢,我把你的巢搞烂了,你要不要叫几声?于是乎那个地方的群众布置了三道防线:第一道是小孩子,第二道是妇女,第三道是男的青壮年。到那里去测量的人都被赶走了,结果农民还是胜利了。
后来,向农民好好说清楚,给他们作了安排,他们的家还是搬了,飞机场还是修了。这样的事情不少。现在,有这样一些人,好像得了天下,就高枕无忧,可以横行霸道了。这样的人,群众反对他,打石头,打锄头,我看是该当,我最欢迎。而且有些时候,只有打才能解决问题。
共产党是要得到教训的。学生上街,工人上街,凡是有那样的事情,同志们要看作好事。成都有一百多学生要到北京请愿,一个列车上的学生在四川省广元车站就被阻止了,另外一个列车上的学生到了洛阳,没有能到北京来。我的意见,周总理的意见,是应当放到北京来,到有关部门去拜访。要允许工人罢工,允许群众示威。游行示威在宪法上是有根据的。以后修改宪法,我主张加一个罢工自由,要允许工人罢工。这样,有利于解决国家、厂长同群众的矛盾。
无非是矛盾。世界充满着矛盾。民主革命解决了同帝国主义、封建主义、官僚资本主义这一套矛盾。现在,在所有制方面同民族资本主义和小生产的矛盾也基本上解决了,别的方面的矛盾又突出出来了,新的矛盾又发生了。县委以上的干部有几十万,国家的命运就掌握在他们手里。如果不搞好,脱离群众,不是艰苦奋斗,那末,工人、农民、学生就有理由不赞成他们。我们一定要警惕,不要滋长官僚主义作风,不要形成一个脱离人民的贵族阶层。谁犯了官僚主义,不去解决群众的问题,骂群众,压群众,总是不改,群众就有理由把他革掉。我说革掉很好,应当革掉。(《毛泽东选集》第五卷,人民出版社1977年4月第1版,第313&#8211;329页)



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>哥这次有尚方宝剑不怕跨省追捕了吗？！</p>
<p><span style="font-family: 楷体_GB2312;">早几年,在河南省一个地方要修飞机场,事先不给农民安排好,没有说清道理,就强迫人家搬家。那个庄的农民说,你拿根长棍子去拨树上雀儿的巢,把它搞下来,雀儿也要叫几声。邓小平你也有一个巢,我把你的巢搞烂了,你要不要叫几声?于是乎那个地方的群众布置了三道防线:第一道是小孩子,第二道是妇女,第三道是男的青壮年。到那里去测量的人都被赶走了,结果农民还是胜利了。</span></p>
<p><span style="font-family: 楷体_GB2312;">后来,向农民好好说清楚,给他们作了安排,他们的家还是搬了,飞机场还是修了。这样的事情不少。现在,有这样一些人,好像得了天下,就高枕无忧,可以横行霸道了。这样的人,群众反对他,打石头,打锄头,我看是该当,我最欢迎。而且有些时候,只有打才能解决问题。</span></p>
<p><span style="font-family: 楷体_GB2312;">共产党是要得到教训的。学生上街,工人上街,凡是有那样的事情,同志们要看作好事。成都有一百多学生要到北京请愿,一个列车上的学生在四川省广元车站就被阻止了,另外一个列车上的学生到了洛阳,没有能到北京来。我的意见,周总理的意见,是应当放到北京来,到有关部门去拜访。要允许工人罢工,允许群众示威。游行示威在宪法上是有根据的。以后修改宪法,我主张加一个罢工自由,要允许工人罢工。这样,有利于解决国家、厂长同群众的矛盾。</span></p>
<p><span style="font-family: 楷体_GB2312;">无非是矛盾。世界充满着矛盾。民主革命解决了同帝国主义、封建主义、官僚资本主义这一套矛盾。现在,在所有制方面同民族资本主义和小生产的矛盾也基本上解决了,别的方面的矛盾又突出出来了,新的矛盾又发生了。县委以上的干部有几十万,国家的命运就掌握在他们手里。如果不搞好,脱离群众,不是艰苦奋斗,那末,工人、农民、学生就有理由不赞成他们。我们一定要警惕,不要滋长官僚主义作风,不要形成一个脱离人民的贵族阶层。谁犯了官僚主义,不去解决群众的问题,骂群众,压群众,总是不改,群众就有理由把他革掉。我说革掉很好,应当革掉。(《毛泽东选集》第五卷,人民出版社1977年4月第1版,第313&#8211;329页)</span></p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E5%93%A5%E8%BF%99%E6%AC%A1%E6%9C%89%E5%B0%9A%E6%96%B9%E5%AE%9D%E5%89%91%E4%B8%8D%E6%80%95%E8%B7%A8%E7%9C%81%E8%BF%BD%E6%8D%95%E4%BA%86%E5%90%97%EF%BC%9F%EF%BC%81&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e8%25bf%2598%25e6%2598%25af%25e6%2580%2595-%25e6%25af%2595%25e7%25ab%259fmao%25e5%25b7%25b2%25e8%25b5%25b0%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e8%25bf%2598%25e6%2598%25af%25e6%2580%2595-%25e6%25af%2595%25e7%25ab%259fmao%25e5%25b7%25b2%25e8%25b5%25b0%2F&title=%E5%93%A5%E8%BF%99%E6%AC%A1%E6%9C%89%E5%B0%9A%E6%96%B9%E5%AE%9D%E5%89%91%E4%B8%8D%E6%80%95%E8%B7%A8%E7%9C%81%E8%BF%BD%E6%8D%95%E4%BA%86%E5%90%97%EF%BC%9F%EF%BC%81?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e8%25bf%2598%25e6%2598%25af%25e6%2580%2595-%25e6%25af%2595%25e7%25ab%259fmao%25e5%25b7%25b2%25e8%25b5%25b0%2F&title=%E5%93%A5%E8%BF%99%E6%AC%A1%E6%9C%89%E5%B0%9A%E6%96%B9%E5%AE%9D%E5%89%91%E4%B8%8D%E6%80%95%E8%B7%A8%E7%9C%81%E8%BF%BD%E6%8D%95%E4%BA%86%E5%90%97%EF%BC%9F%EF%BC%81&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e8%25bf%2598%25e6%2598%25af%25e6%2580%2595-%25e6%25af%2595%25e7%25ab%259fmao%25e5%25b7%25b2%25e8%25b5%25b0%2F&amp;title=%E5%93%A5%E8%BF%99%E6%AC%A1%E6%9C%89%E5%B0%9A%E6%96%B9%E5%AE%9D%E5%89%91%E4%B8%8D%E6%80%95%E8%B7%A8%E7%9C%81%E8%BF%BD%E6%8D%95%E4%BA%86%E5%90%97%EF%BC%9F%EF%BC%81?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E5%93%A5%E8%BF%99%E6%AC%A1%E6%9C%89%E5%B0%9A%E6%96%B9%E5%AE%9D%E5%89%91%E4%B8%8D%E6%80%95%E8%B7%A8%E7%9C%81%E8%BF%BD%E6%8D%95%E4%BA%86%E5%90%97%EF%BC%9F%EF%BC%81&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e8%25bf%2598%25e6%2598%25af%25e6%2580%2595-%25e6%25af%2595%25e7%25ab%259fmao%25e5%25b7%25b2%25e8%25b5%25b0%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/%e8%bf%98%e6%98%af%e6%80%95-%e6%af%95%e7%ab%9fmao%e5%b7%b2%e8%b5%b0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用我喜欢的字体（Cufon）</title>
		<link>http://www.zhangjingwei.com/archives/cufon/</link>
		<comments>http://www.zhangjingwei.com/archives/cufon/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 04:45:21 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[cufon]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1307</guid>
		<description><![CDATA[优雅的设计经常包含一些特殊的字体，而这些字体并不存在于用户的字体库中，我们并不能奢求每一个访客都是设计师。  :-)
虽然CSS3标准给我们带来了@font-face属性，但他也仅仅限于使用在“Gecko 1.9.1，Applies to Firefox 3.5, SeaMonkey 2, and Thunderbird 3 and later”
不是Type2呢？不是Firefox3.5呢？显然这并不是一个现实的解决方案，毕竟我们有90%以上的用户在使用IE。
为了解决这个问题，我们使用了sIFR框架，但是这玩意一点也不好，首先是大，其次是慢，而Cufon可以很好的代替它。
什么是 Cufon 呢？Cufon 是一个实现在网页中对文字字体进行渲染的纯 JavaScript 开源类库。
使用Cufon非常简单，只需要在页面中引入Cufon得核心文件，然后在http://cufon.shoqolate.com/generate/ 将你的字体转换为JS字体文件并引用到页面中。
接下来，就可以使用相应的Cufon API对页面中的字体进行渲染了。
那么Cufon是如何对页面字体进行渲染的呢？ 当然是VML、Canvas、SVG，因为网上已经有了相关的文章，所以我就不复制粘贴了。如果你有兴趣，可以看这里了解详细。
最后，因为Cufon是将字体以JSON格式进行编码，所以如果字体是中文的话，这个JS库会增大数倍，使用的时候一定要谨慎。
参考资料：
http://www.ibm.com/developerworks/cn/web/0911_zhuzh_cufon/
http://www.mikeindustries.com/blog/sifr/
https://developer.mozilla.org/index.php?title=en/CSS/%40font-face
http://wiki.github.com/sorccu/cufon/api



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>优雅的设计经常包含一些特殊的字体，而这些字体并不存在于用户的字体库中，我们并不能奢求每一个访客都是设计师。  :-)</p>
<p>虽然CSS3标准给我们带来了@font-face属性，但他也仅仅限于使用在“<a href="https://developer.mozilla.org/index.php?title=en/CSS/%40font-face" target="_blank">Gecko 1.9.1，Applies to Firefox 3.5, SeaMonkey 2, and Thunderbird 3 and later</a>”</p>
<p>不是Type2呢？不是Firefox3.5呢？显然这并不是一个现实的解决方案，毕竟我们有90%以上的用户在使用IE。</p>
<p>为了解决这个问题，我们使用了<a href="http://baike.baidu.com/view/1311052.htm?fr=ala0" target="_blank">sIFR框架</a>，但是这玩意一点也不好，首先是大，其次是慢，而Cufon可以很好的代替它。</p>
<p>什么是 Cufon 呢？Cufon 是一个实现在网页中对文字字体进行渲染的纯 JavaScript 开源类库。</p>
<p>使用Cufon非常简单，只需要在页面中引入Cufon得核心文件，然后在<a href="http://cufon.shoqolate.com/generate/ " target="_blank">http://cufon.shoqolate.com/generate/ </a>将你的字体转换为JS字体文件并引用到页面中。</p>
<p>接下来，就可以使用相应的<a href="http://wiki.github.com/sorccu/cufon/api" target="_blank">Cufon API</a>对页面中的字体进行渲染了。</p>
<p>那么Cufon是如何对页面字体进行渲染的呢？ 当然是VML、Canvas、SVG，因为网上已经有了相关的文章，所以我就不复制粘贴了。如果你有兴趣，可以看<a href="http://www.ibm.com/developerworks/cn/web/0911_zhuzh_cufon/?S_TACT=105AGX52&amp;S_CMP=tec-csdn" target="_blank">这里</a>了解详细。</p>
<p>最后，因为Cufon是将字体以JSON格式进行编码，所以如果字体是中文的话，这个JS库会增大数倍，使用的时候一定要谨慎。</p>
<p>参考资料：<br />
<a href="http://www.ibm.com/developerworks/cn/web/0911_zhuzh_cufon/" target="_blank">http://www.ibm.com/developerworks/cn/web/0911_zhuzh_cufon/</a><br />
<a href="http://www.mikeindustries.com/blog/sifr/" target="_blank">http://www.mikeindustries.com/blog/sifr/</a><br />
<a href="https://developer.mozilla.org/index.php?title=en/CSS/%40font-face" target="_blank">https://developer.mozilla.org/index.php?title=en/CSS/%40font-face</a><br />
<a href="http://wiki.github.com/sorccu/cufon/api" target="_blank">http://wiki.github.com/sorccu/cufon/api</a></p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E7%94%A8%E6%88%91%E5%96%9C%E6%AC%A2%E7%9A%84%E5%AD%97%E4%BD%93%EF%BC%88Cufon%EF%BC%89&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fcufon%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fcufon%2F&title=%E7%94%A8%E6%88%91%E5%96%9C%E6%AC%A2%E7%9A%84%E5%AD%97%E4%BD%93%EF%BC%88Cufon%EF%BC%89?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fcufon%2F&title=%E7%94%A8%E6%88%91%E5%96%9C%E6%AC%A2%E7%9A%84%E5%AD%97%E4%BD%93%EF%BC%88Cufon%EF%BC%89&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fcufon%2F&amp;title=%E7%94%A8%E6%88%91%E5%96%9C%E6%AC%A2%E7%9A%84%E5%AD%97%E4%BD%93%EF%BC%88Cufon%EF%BC%89?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E7%94%A8%E6%88%91%E5%96%9C%E6%AC%A2%E7%9A%84%E5%AD%97%E4%BD%93%EF%BC%88Cufon%EF%BC%89&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fcufon%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/cufon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox的新属性 pointer-events</title>
		<link>http://www.zhangjingwei.com/archives/pointer-events/</link>
		<comments>http://www.zhangjingwei.com/archives/pointer-events/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 17:16:02 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[pointer-events]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1297</guid>
		<description><![CDATA[Firefox 3.6 增加了对pointer-events的支持。Opera和safari都可以对svg的pointer-events属性做出支持，这次Firefox把他扩展到了常见的HTML元素上。
pointer-events的语法为
pointer-events:  auto &#124; none &#124; visiblePainted &#124; visibleFill &#124; visibleStroke &#124; visible &#124; painted &#124; fill &#124; stroke &#124; all &#124; inherit
其中auto和none可针对所有的元素使用，其它的值只针对SVG。
（as of Firefox 3.6, only the values auto and none apply to all elements. The other values only apply to SVG and behave like auto in other XML and HTML content.）
当使用none的时候，当前节点下的所有子节点不接受event事件。反之则接受。
例如当pointer-events为none时：

#test [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox 3.6 增加了对<a href="https://developer.mozilla.org/en/CSS/pointer-events" target="_blank">pointer-events</a>的支持。Opera和safari都可以对svg的pointer-events属性做出支持，这次Firefox把他扩展到了常见的HTML元素上。</p>
<p>pointer-events的语法为<br />
pointer-events:  auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit</p>
<p>其中auto和none可针对所有的元素使用，其它的值只针对SVG。<br />
（as of Firefox 3.6, only the values auto and none apply to all elements. The other values only apply to SVG and behave like auto in other XML and HTML content.）</p>
<p>当使用none的时候，当前节点下的所有子节点不接受event事件。反之则接受。</p>
<p>例如当pointer-events为none时：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#test</span> <span style="color: #00AA00;">&#123;</span>
    pointer-events<span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
  <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#test</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>鼠标移动到p节点上时将没有不会触发任何事件。</p>
<p>值为auto时：<a href="http://www.zhangjingwei.com/demo/pointer-events/auto.htm" target="_blank">pointer-events/auto.htm</a></p>
<p>值为none时：<a href="http://www.zhangjingwei.com/demo/pointer-events/none.htm" target="_blank">pointer-events/none.htm</a></p>
<p>不过针对HTML元素是Firefox自己创造的新玩意。 ：）</p>
<p>参考：<br />
<a href="http://www.w3.org/TR/SVG/interact.html#PointerEventsProperty" target="_blank">http://www.w3.org/TR/SVG/interact.html#PointerEventsProperty</a><br />
<a href="http://hacks.mozilla.org/2009/12/pointer-events-for-html-in-firefox-3-6/" target="_blank">http://hacks.mozilla.org/2009/12/pointer-events-for-html-in-firefox-3-6/</a><br />
<a href="https://developer.mozilla.org/en/CSS/pointer-events" target="_blank">https://developer.mozilla.org/en/CSS/pointer-events</a></p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=Firefox%E7%9A%84%E6%96%B0%E5%B1%9E%E6%80%A7%20pointer-events&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fpointer-events%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fpointer-events%2F&title=Firefox%E7%9A%84%E6%96%B0%E5%B1%9E%E6%80%A7%20pointer-events?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fpointer-events%2F&title=Firefox%E7%9A%84%E6%96%B0%E5%B1%9E%E6%80%A7%20pointer-events&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fpointer-events%2F&amp;title=Firefox%E7%9A%84%E6%96%B0%E5%B1%9E%E6%80%A7%20pointer-events?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Firefox%E7%9A%84%E6%96%B0%E5%B1%9E%E6%80%A7%20pointer-events&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fpointer-events%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/pointer-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>纯数字不重复排列的另类方法</title>
		<link>http://www.zhangjingwei.com/archives/%e7%ba%af%e6%95%b0%e5%ad%97%e4%b8%8d%e9%87%8d%e5%a4%8d%e6%8e%92%e5%88%97%e7%9a%84%e7%8c%a5%e7%90%90%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.zhangjingwei.com/archives/%e7%ba%af%e6%95%b0%e5%ad%97%e4%b8%8d%e9%87%8d%e5%a4%8d%e6%8e%92%e5%88%97%e7%9a%84%e7%8c%a5%e7%90%90%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 06:14:19 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[排序]]></category>
		<category><![CDATA[不重复]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1260</guid>
		<description><![CDATA[方法不是主流的。
有一组数据，大概10万个左右，每一单位的值不会大于30000，要求按照由大到小的顺序不重复输出。
参考无忧cosin的方法后（多谢），整理的方法如下

//一段随机数，模拟用
var baseNum=&#91;&#93;;
for&#40;var i= 0;i&#60; 100000 ;i++&#41;&#123;
 random = Math.floor&#40;Math.random&#40;&#41;*i&#41;;
 baseNum.push&#40;random&#41;;
&#125;
var baseNumLen = baseNum.length;
var numSubscript = &#91;&#93;;
//将数字作为下标和值放到另一数组内，实现排序和不重复
for &#40;var i =0;i&#60;basenumlen ;i++&#41;&#123;
 if&#40;numSubscript&#91;baseNum&#91;i&#93;&#93; == undefined&#41;numSubscript&#91;baseNum&#91;i&#93;&#93;=baseNum&#91;i&#93;;
&#125;
//去除空的值并颠倒一下
baseNum = numSubscript.join&#40;','&#41;.replace&#40;/([,]+)/ig, ','&#41;.split&#40;','&#41;.reverse&#40;&#41;;
document.write&#40;baseNum&#41;;


题外：
假如数组是自己生成，客服果果写的这段代码就很好了。（牛逼）

var baseNum=&#91;&#93;,tmp=&#123;&#125;,v;
for&#40;var i= 0;i&#60; 100000 ;i++&#41;&#123;
        tmp&#91;Math.floor&#40;Math.random&#40;&#41;*i&#41;&#93;=true;
&#125;;
i=0;
for &#40;var k in tmp&#41;&#123;
        baseNum&#91;i++&#93;=k;
&#125;;
baseNum.sort&#40;fn&#41;;
function fn&#40;x,y&#41; &#123;
   [...]]]></description>
			<content:encoded><![CDATA[<p>方法不是主流的。</p>
<p>有一组数据，大概10万个左右，每一单位的值不会大于30000，要求按照由大到小的顺序不重复输出。</p>
<p>参考无忧cosin的方法后（多谢），整理的方法如下</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//一段随机数，模拟用</span>
<span style="color: #003366; font-weight: bold;">var</span> baseNum<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">100000</span> <span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 random <span style="color: #339933;">=</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 baseNum.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>random<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">var</span> baseNumLen <span style="color: #339933;">=</span> baseNum.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> numSubscript <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//将数字作为下标和值放到另一数组内，实现排序和不重复</span>
<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>basenumlen <span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>numSubscript<span style="color: #009900;">&#91;</span>baseNum<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> undefined<span style="color: #009900;">&#41;</span>numSubscript<span style="color: #009900;">&#91;</span>baseNum<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>baseNum<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #006600; font-style: italic;">//去除空的值并颠倒一下</span>
baseNum <span style="color: #339933;">=</span> numSubscript.<span style="color: #660066;">join</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">','</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/([,]+)/ig</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">','</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">','</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">reverse</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span>baseNum<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</pre>
<pre>题外：
假如数组是自己生成，客服果果写的这段代码就很好了。（牛逼）</pre>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> baseNum<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>tmp<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>v<span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">100000</span> <span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        tmp<span style="color: #009900;">&#91;</span>Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> k <span style="color: #000066; font-weight: bold;">in</span> tmp<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        baseNum<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>k<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
baseNum.<span style="color: #660066;">sort</span><span style="color: #009900;">&#40;</span>fn<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> fn<span style="color: #009900;">&#40;</span>x<span style="color: #339933;">,</span>y<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span> x<span style="color: #339933;">-</span>y<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">?</span><span style="color: #CC0000;">1</span><span style="color: #339933;">:-</span><span style="color: #CC0000;">1</span>
<span style="color: #009900;">&#125;</span>
document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span>baseNum.<span style="color: #660066;">join</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</pre>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E7%BA%AF%E6%95%B0%E5%AD%97%E4%B8%8D%E9%87%8D%E5%A4%8D%E6%8E%92%E5%88%97%E7%9A%84%E5%8F%A6%E7%B1%BB%E6%96%B9%E6%B3%95&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%25ba%25af%25e6%2595%25b0%25e5%25ad%2597%25e4%25b8%258d%25e9%2587%258d%25e5%25a4%258d%25e6%258e%2592%25e5%2588%2597%25e7%259a%2584%25e7%258c%25a5%25e7%2590%2590%25e6%2596%25b9%25e6%25b3%2595%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%25ba%25af%25e6%2595%25b0%25e5%25ad%2597%25e4%25b8%258d%25e9%2587%258d%25e5%25a4%258d%25e6%258e%2592%25e5%2588%2597%25e7%259a%2584%25e7%258c%25a5%25e7%2590%2590%25e6%2596%25b9%25e6%25b3%2595%2F&title=%E7%BA%AF%E6%95%B0%E5%AD%97%E4%B8%8D%E9%87%8D%E5%A4%8D%E6%8E%92%E5%88%97%E7%9A%84%E5%8F%A6%E7%B1%BB%E6%96%B9%E6%B3%95?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%25ba%25af%25e6%2595%25b0%25e5%25ad%2597%25e4%25b8%258d%25e9%2587%258d%25e5%25a4%258d%25e6%258e%2592%25e5%2588%2597%25e7%259a%2584%25e7%258c%25a5%25e7%2590%2590%25e6%2596%25b9%25e6%25b3%2595%2F&title=%E7%BA%AF%E6%95%B0%E5%AD%97%E4%B8%8D%E9%87%8D%E5%A4%8D%E6%8E%92%E5%88%97%E7%9A%84%E5%8F%A6%E7%B1%BB%E6%96%B9%E6%B3%95&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%25ba%25af%25e6%2595%25b0%25e5%25ad%2597%25e4%25b8%258d%25e9%2587%258d%25e5%25a4%258d%25e6%258e%2592%25e5%2588%2597%25e7%259a%2584%25e7%258c%25a5%25e7%2590%2590%25e6%2596%25b9%25e6%25b3%2595%2F&amp;title=%E7%BA%AF%E6%95%B0%E5%AD%97%E4%B8%8D%E9%87%8D%E5%A4%8D%E6%8E%92%E5%88%97%E7%9A%84%E5%8F%A6%E7%B1%BB%E6%96%B9%E6%B3%95?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E7%BA%AF%E6%95%B0%E5%AD%97%E4%B8%8D%E9%87%8D%E5%A4%8D%E6%8E%92%E5%88%97%E7%9A%84%E5%8F%A6%E7%B1%BB%E6%96%B9%E6%B3%95&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e7%25ba%25af%25e6%2595%25b0%25e5%25ad%2597%25e4%25b8%258d%25e9%2587%258d%25e5%25a4%258d%25e6%258e%2592%25e5%2588%2597%25e7%259a%2584%25e7%258c%25a5%25e7%2590%2590%25e6%2596%25b9%25e6%25b3%2595%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/%e7%ba%af%e6%95%b0%e5%ad%97%e4%b8%8d%e9%87%8d%e5%a4%8d%e6%8e%92%e5%88%97%e7%9a%84%e7%8c%a5%e7%90%90%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Select(单选) 模拟插件 V1.3.6</title>
		<link>http://www.zhangjingwei.com/archives/jquery-select%e5%8d%95%e9%80%89-%e6%a8%a1%e6%8b%9f%e6%8f%92%e4%bb%b6-v1-3-6/</link>
		<comments>http://www.zhangjingwei.com/archives/jquery-select%e5%8d%95%e9%80%89-%e6%a8%a1%e6%8b%9f%e6%8f%92%e4%bb%b6-v1-3-6/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 12:50:24 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1255</guid>
		<description><![CDATA[a、增加了onchange事件。（谢谢fjgysai）
b、可以支持方法连缀了。
c、修正opera下的笔误。
d、可支持jQuery的选择器了
下载地址：http://www.zhangjingwei.com/demo/jQuery.Select/index.html
您可以自由的使用这个插件在任何项目上。（商业、非商业）
希望您可以补充完善这个插件。



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>a、增加了onchange事件。（谢谢fjgysai）</p>
<p>b、可以支持方法连缀了。</p>
<p>c、修正opera下的笔误。</p>
<p>d、可支持jQuery的选择器了</p>
<p>下载地址：<a href="http://www.zhangjingwei.com/demo/jQuery.Select/index.html" target="_blank">http://www.zhangjingwei.com/demo/jQuery.Select/index.html</a></p>
<p><em>您可以自由的使用这个插件在任何项目上。（商业、非商业）<br />
希望您可以补充完善这个插件。</em></p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=jQuery%20Select%28%E5%8D%95%E9%80%89%29%20%E6%A8%A1%E6%8B%9F%E6%8F%92%E4%BB%B6%20V1.3.6&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fjquery-select%25e5%258d%2595%25e9%2580%2589-%25e6%25a8%25a1%25e6%258b%259f%25e6%258f%2592%25e4%25bb%25b6-v1-3-6%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fjquery-select%25e5%258d%2595%25e9%2580%2589-%25e6%25a8%25a1%25e6%258b%259f%25e6%258f%2592%25e4%25bb%25b6-v1-3-6%2F&title=jQuery%20Select%28%E5%8D%95%E9%80%89%29%20%E6%A8%A1%E6%8B%9F%E6%8F%92%E4%BB%B6%20V1.3.6?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fjquery-select%25e5%258d%2595%25e9%2580%2589-%25e6%25a8%25a1%25e6%258b%259f%25e6%258f%2592%25e4%25bb%25b6-v1-3-6%2F&title=jQuery%20Select%28%E5%8D%95%E9%80%89%29%20%E6%A8%A1%E6%8B%9F%E6%8F%92%E4%BB%B6%20V1.3.6&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fjquery-select%25e5%258d%2595%25e9%2580%2589-%25e6%25a8%25a1%25e6%258b%259f%25e6%258f%2592%25e4%25bb%25b6-v1-3-6%2F&amp;title=jQuery%20Select%28%E5%8D%95%E9%80%89%29%20%E6%A8%A1%E6%8B%9F%E6%8F%92%E4%BB%B6%20V1.3.6?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=jQuery%20Select%28%E5%8D%95%E9%80%89%29%20%E6%A8%A1%E6%8B%9F%E6%8F%92%E4%BB%B6%20V1.3.6&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fjquery-select%25e5%258d%2595%25e9%2580%2589-%25e6%25a8%25a1%25e6%258b%259f%25e6%258f%2592%25e4%25bb%25b6-v1-3-6%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/jquery-select%e5%8d%95%e9%80%89-%e6%a8%a1%e6%8b%9f%e6%8f%92%e4%bb%b6-v1-3-6/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Date对象格式化方法</title>
		<link>http://www.zhangjingwei.com/archives/date%e5%af%b9%e8%b1%a1%e6%a0%bc%e5%bc%8f%e5%8c%96%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.zhangjingwei.com/archives/date%e5%af%b9%e8%b1%a1%e6%a0%bc%e5%bc%8f%e5%8c%96%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 02:03:05 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1251</guid>
		<description><![CDATA[
/*
 * Date Format 1.2.3
 * (c) 2007-2009 Steven Levithan
 * MIT license
 *
 * Includes enhancements by Scott Trenda
 * and Kris Kowal
 *
 * Accepts a date, a mask, or a date and a mask.
 * Returns a formatted version of the given date.
 * The date defaults to the current date/time.
 * [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/*
 * Date Format 1.2.3
 * (c) 2007-2009 Steven Levithan
 * MIT license
 *
 * Includes enhancements by Scott Trenda
 * and Kris Kowal
 *
 * Accepts a date, a mask, or a date and a mask.
 * Returns a formatted version of the given date.
 * The date defaults to the current date/time.
 * The mask defaults to dateFormat.masks.default.
 */</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> dateFormat <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span>	token <span style="color: #339933;">=</span> <span style="color: #009966; font-style: italic;">/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|&quot;[^&quot;]*&quot;|'[^']*'/g</span><span style="color: #339933;">,</span>
		timezone <span style="color: #339933;">=</span> <span style="color: #009966; font-style: italic;">/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g</span><span style="color: #339933;">,</span>
		timezoneClip <span style="color: #339933;">=</span> <span style="color: #009966; font-style: italic;">/[^-+\dA-Z]/g</span><span style="color: #339933;">,</span>
		pad <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>val<span style="color: #339933;">,</span> len<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			val <span style="color: #339933;">=</span> String<span style="color: #009900;">&#40;</span>val<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			len <span style="color: #339933;">=</span> len <span style="color: #339933;">||</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>val.<span style="color: #660066;">length</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> len<span style="color: #009900;">&#41;</span> val <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;0&quot;</span> <span style="color: #339933;">+</span> val<span style="color: #339933;">;</span> 			<span style="color: #000066; font-weight: bold;">return</span> val<span style="color: #339933;">;</span> 		<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span> 	<span style="color: #006600; font-style: italic;">// Regexes and supporting functions are cached through closure 	return function (date, mask, utc) { 		var dF = dateFormat; 		// You can't provide utc if you skip other args (use the &quot;UTC:&quot; mask prefix) 		if (arguments.length == 1 &amp;amp;&amp;amp; Object.prototype.toString.call(date) == &quot;[object String]&quot; &amp;amp;&amp;amp; !/\d/.test(date)) { 			mask = date; 			date = undefined; 		} 		// Passing date through Date applies Date.parse, if necessary 		date = date ? new Date(date) : new Date; 		if (isNaN(date)) throw SyntaxError(&quot;invalid date&quot;); 		mask = String(dF.masks[mask] || mask || dF.masks[&quot;default&quot;]); 		// Allow setting the utc argument via the mask 		if (mask.slice(0, 4) == &quot;UTC:&quot;) { 			mask = mask.slice(4); 			utc = true; 		} 		var	_ = utc ? &quot;getUTC&quot; : &quot;get&quot;, 			d = date[_ + &quot;Date&quot;](), 			D = date[_ + &quot;Day&quot;](), 			m = date[_ + &quot;Month&quot;](), 			y = date[_ + &quot;FullYear&quot;](), 			H = date[_ + &quot;Hours&quot;](), 			M = date[_ + &quot;Minutes&quot;](), 			s = date[_ + &quot;Seconds&quot;](), 			L = date[_ + &quot;Milliseconds&quot;](), 			o = utc ? 0 : date.getTimezoneOffset(), 			flags = { 				d:    d, 				dd:   pad(d), 				ddd:  dF.i18n.dayNames[D], 				dddd: dF.i18n.dayNames[D + 7], 				m:    m + 1, 				mm:   pad(m + 1), 				mmm:  dF.i18n.monthNames[m], 				mmmm: dF.i18n.monthNames[m + 12], 				yy:   String(y).slice(2), 				yyyy: y, 				h:    H % 12 || 12, 				hh:   pad(H % 12 || 12), 				H:    H, 				HH:   pad(H), 				M:    M, 				MM:   pad(M), 				s:    s, 				ss:   pad(s), 				l:    pad(L, 3), 				L:    pad(L &amp;gt; 99 ? Math.round(L / 10) : L),</span>
				t<span style="color: #339933;">:</span>    H <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #CC0000;">12</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;a&quot;</span>  <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;p&quot;</span><span style="color: #339933;">,</span>
				tt<span style="color: #339933;">:</span>   H <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #CC0000;">12</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;am&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;pm&quot;</span><span style="color: #339933;">,</span>
				T<span style="color: #339933;">:</span>    H <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #CC0000;">12</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;A&quot;</span>  <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;P&quot;</span><span style="color: #339933;">,</span>
				TT<span style="color: #339933;">:</span>   H <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #CC0000;">12</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;AM&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;PM&quot;</span><span style="color: #339933;">,</span> 				Z<span style="color: #339933;">:</span>    utc <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;UTC&quot;</span> <span style="color: #339933;">:</span> <span style="color: #009900;">&#40;</span>String<span style="color: #009900;">&#40;</span>date<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span>timezone<span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">pop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span>timezoneClip<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 				o<span style="color: #339933;">:</span>    <span style="color: #009900;">&#40;</span>o <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;-&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;+&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> pad<span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">abs</span><span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">60</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">100</span> <span style="color: #339933;">+</span> Math.<span style="color: #660066;">abs</span><span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#41;</span> <span style="color: #339933;">%</span> <span style="color: #CC0000;">60</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				S<span style="color: #339933;">:</span>    <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;th&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;st&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;nd&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;rd&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>d <span style="color: #339933;">%</span> <span style="color: #CC0000;">10</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #CC0000;">3</span> <span style="color: #339933;">?</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">:</span> <span style="color: #009900;">&#40;</span>d <span style="color: #339933;">%</span> <span style="color: #CC0000;">100</span> <span style="color: #339933;">-</span> d <span style="color: #339933;">%</span> <span style="color: #CC0000;">10</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> d <span style="color: #339933;">%</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#93;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">return</span> mask.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span>token<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>$<span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">return</span> $<span style="color: #CC0000;">0</span> <span style="color: #000066; font-weight: bold;">in</span> flags <span style="color: #339933;">?</span> flags<span style="color: #009900;">&#91;</span>$<span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> $0.<span style="color: #660066;">slice</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> $0.<span style="color: #660066;">length</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Some common format strings</span>
dateFormat.<span style="color: #660066;">masks</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #3366CC;">&quot;default&quot;</span><span style="color: #339933;">:</span>      <span style="color: #3366CC;">&quot;ddd mmm dd yyyy HH:MM:ss&quot;</span><span style="color: #339933;">,</span>
	shortDate<span style="color: #339933;">:</span>      <span style="color: #3366CC;">&quot;m/d/yy&quot;</span><span style="color: #339933;">,</span>
	mediumDate<span style="color: #339933;">:</span>     <span style="color: #3366CC;">&quot;mmm d, yyyy&quot;</span><span style="color: #339933;">,</span>
	longDate<span style="color: #339933;">:</span>       <span style="color: #3366CC;">&quot;mmmm d, yyyy&quot;</span><span style="color: #339933;">,</span>
	fullDate<span style="color: #339933;">:</span>       <span style="color: #3366CC;">&quot;dddd, mmmm d, yyyy&quot;</span><span style="color: #339933;">,</span>
	shortTime<span style="color: #339933;">:</span>      <span style="color: #3366CC;">&quot;h:MM TT&quot;</span><span style="color: #339933;">,</span>
	mediumTime<span style="color: #339933;">:</span>     <span style="color: #3366CC;">&quot;h:MM:ss TT&quot;</span><span style="color: #339933;">,</span>
	longTime<span style="color: #339933;">:</span>       <span style="color: #3366CC;">&quot;h:MM:ss TT Z&quot;</span><span style="color: #339933;">,</span>
	isoDate<span style="color: #339933;">:</span>        <span style="color: #3366CC;">&quot;yyyy-mm-dd&quot;</span><span style="color: #339933;">,</span>
	isoTime<span style="color: #339933;">:</span>        <span style="color: #3366CC;">&quot;HH:MM:ss&quot;</span><span style="color: #339933;">,</span>
	isoDateTime<span style="color: #339933;">:</span>    <span style="color: #3366CC;">&quot;yyyy-mm-dd'T'HH:MM:ss&quot;</span><span style="color: #339933;">,</span>
	isoUtcDateTime<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;UTC:yyyy-mm-dd'T'HH:MM:ss'Z'&quot;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Internationalization strings</span>
dateFormat.<span style="color: #660066;">i18n</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
	dayNames<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>
		<span style="color: #3366CC;">&quot;Sun&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Mon&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Tue&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Wed&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Thu&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Fri&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Sat&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #3366CC;">&quot;Sunday&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Monday&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Tuesday&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Wednesday&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Thursday&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Friday&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Saturday&quot;</span>
	<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
	monthNames<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>
		<span style="color: #3366CC;">&quot;Jan&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Feb&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Mar&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Apr&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;May&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Jun&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Jul&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Aug&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Sep&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Oct&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Nov&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Dec&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #3366CC;">&quot;January&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;February&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;March&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;April&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;May&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;June&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;July&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;August&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;September&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;October&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;November&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;December&quot;</span>
	<span style="color: #009900;">&#93;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// For convenience...</span>
Date.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">format</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>mask<span style="color: #339933;">,</span> utc<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">return</span> dateFormat<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">,</span> mask<span style="color: #339933;">,</span> utc<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p><span id="more-1251"></span>用法：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> now <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
now.<span style="color: #660066;">format</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;m/dd/yy&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Returns, e.g., 6/09/07</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Can also be used as a standalone function</span>
dateFormat<span style="color: #009900;">&#40;</span>now<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;dddd, mmmm dS, yyyy, h:MM:ss TT&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Saturday, June 9th, 2007, 5:46:21 PM</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// You can use one of several named masks</span>
now.<span style="color: #660066;">format</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;isoDateTime&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 2007-06-09T17:46:21</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// ...Or add your own</span>
dateFormat.<span style="color: #660066;">masks</span>.<span style="color: #660066;">hammerTime</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'HH:MM! &quot;Can<span style="color: #000099; font-weight: bold;">\'</span>t touch this!&quot;'</span><span style="color: #339933;">;</span>
now.<span style="color: #660066;">format</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hammerTime&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 17:46! Can't touch this!</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// When using the standalone dateFormat function,</span>
<span style="color: #006600; font-style: italic;">// you can also provide the date as a string</span>
dateFormat<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Jun 9 2007&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;fullDate&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Saturday, June 9, 2007</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Note that if you don't include the mask argument,</span>
<span style="color: #006600; font-style: italic;">// dateFormat.masks.default is used</span>
now.<span style="color: #660066;">format</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Sat Jun 09 2007 17:46:21</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// And if you don't include the date argument,</span>
<span style="color: #006600; font-style: italic;">// the current date and time is used</span>
dateFormat<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Sat Jun 09 2007 17:46:22</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// You can also skip the date argument (as long as your mask doesn't</span>
<span style="color: #006600; font-style: italic;">// contain any numbers), in which case the current date/time is used</span>
dateFormat<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;longTime&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 5:46:22 PM EST</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// And finally, you can convert local time to UTC time. Either pass in</span>
<span style="color: #006600; font-style: italic;">// true as an additional argument (no argument skipping allowed in this case):</span>
dateFormat<span style="color: #009900;">&#40;</span>now<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;longTime&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
now.<span style="color: #660066;">format</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;longTime&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Both lines return, e.g., 10:46:21 PM UTC</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// ...Or add the prefix &quot;UTC:&quot; to your mask.</span>
now.<span style="color: #660066;">format</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;UTC:h:MM:ss TT Z&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 10:46:21 PM UTC</span></pre></div></div>

<p> </p>
<table cellspacing="0" summary="Date Format mask metasequences">
<thead>
<tr>
<th>Mask</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>d</code></td>
<td>Day of the month as digits; no leading zero for single-digit days.</td>
</tr>
<tr class="altBg">
<td><code>dd</code></td>
<td>Day of the month as digits; leading zero for single-digit days.</td>
</tr>
<tr>
<td><code>ddd</code></td>
<td>Day of the week as a three-letter abbreviation.</td>
</tr>
<tr class="altBg">
<td><code>dddd</code></td>
<td>Day of the week as its full name.</td>
</tr>
<tr>
<td><code>m</code></td>
<td>Month as digits; no leading zero for single-digit months.</td>
</tr>
<tr class="altBg">
<td><code>mm</code></td>
<td>Month as digits; leading zero for single-digit months.</td>
</tr>
<tr>
<td><code>mmm</code></td>
<td>Month as a three-letter abbreviation.</td>
</tr>
<tr class="altBg">
<td><code>mmmm</code></td>
<td>Month as its full name.</td>
</tr>
<tr>
<td><code>yy</code></td>
<td>Year as last two digits; leading zero for years less than 10.</td>
</tr>
<tr class="altBg">
<td><code>yyyy</code></td>
<td>Year represented by four digits.</td>
</tr>
<tr>
<td><code>h</code></td>
<td>Hours; no leading zero for single-digit hours (12-hour clock).</td>
</tr>
<tr class="altBg">
<td><code>hh</code></td>
<td>Hours; leading zero for single-digit hours (12-hour clock).</td>
</tr>
<tr>
<td><code>H</code></td>
<td>Hours; no leading zero for single-digit hours (24-hour clock).</td>
</tr>
<tr class="altBg">
<td><code>HH</code></td>
<td>Hours; leading zero for single-digit hours (24-hour clock).</td>
</tr>
<tr>
<td><code>M</code></td>
<td>Minutes; no leading zero for single-digit minutes.<br />
				<span class="small">Uppercase M unlike CF <code>timeFormat</code>&#8217;s m to avoid conflict with months.</span></td>
</tr>
<tr class="altBg">
<td><code>MM</code></td>
<td>Minutes; leading zero for single-digit minutes.<br />
				<span class="small">Uppercase MM unlike CF <code>timeFormat</code>&#8217;s mm to avoid conflict with months.</span></td>
</tr>
<tr>
<td><code>s</code></td>
<td>Seconds; no leading zero for single-digit seconds.</td>
</tr>
<tr class="altBg">
<td><code>ss</code></td>
<td>Seconds; leading zero for single-digit seconds.</td>
</tr>
<tr>
<td><code>l</code> <em>or</em> <code>L</code></td>
<td>Milliseconds. <code>l</code> gives 3 digits. <code>L</code> gives 2 digits.</td>
</tr>
<tr class="altBg">
<td><code>t</code></td>
<td>Lowercase, single-character time marker string: <em>a</em> or <em>p</em>.<br />
				<span class="small">No equivalent in CF.</span></td>
</tr>
<tr>
<td><code>tt</code></td>
<td>Lowercase, two-character time marker string: <em>am</em> or <em>pm</em>.<br />
				<span class="small">No equivalent in CF.</span></td>
</tr>
<tr class="altBg">
<td><code>T</code></td>
<td>Uppercase, single-character time marker string: <em>A</em> or <em>P</em>.<br />
				<span class="small">Uppercase T unlike CF&#8217;s t to allow for user-specified casing.</span></td>
</tr>
<tr>
<td><code>TT</code></td>
<td>Uppercase, two-character time marker string: <em>AM</em> or <em>PM</em>.<br />
				<span class="small">Uppercase TT unlike CF&#8217;s tt to allow for user-specified casing.</span></td>
</tr>
<tr class="altBg">
<td><code>Z</code></td>
<td>US timezone abbreviation, e.g. <em>EST</em> or <em>MDT</em>. With non-US timezones or in the Opera browser, the GMT/UTC offset is returned, e.g. <em>GMT-0500</em><br />
				<span class="small">No equivalent in CF.</span></td>
</tr>
<tr>
<td><code>o</code></td>
<td>GMT/UTC timezone offset, e.g. <em>-0500</em> or <em>+0230</em>.<br />
				<span class="small">No equivalent in CF.</span></td>
</tr>
<tr class="altBg">
<td><code>S</code></td>
<td>The date&#8217;s ordinal suffix (<em>st</em>, <em>nd</em>, <em>rd</em>, or <em>th</em>). Works well with <code>d</code>.<br />
				<span class="small">No equivalent in CF.</span></td>
</tr>
<tr>
<td><code>'&hellip;'</code> <em>or</em> <code>"&hellip;"</code></td>
<td>Literal character sequence. Surrounding quotes are removed.<br />
				<span class="small">No equivalent in CF.</span></td>
</tr>
<tr class="altBg">
<td><code>UTC:</code></td>
<td>Must be the first four characters of the mask. Converts the date from local time to UTC/GMT/Zulu time before applying the mask. The &#8220;UTC:&#8221; prefix is removed.<br />
				<span class="small">No equivalent in CF.</span></td>
</tr>
</tbody>
</table>
<table cellspacing="0" summary="Date Format named masks">
<thead>
<tr>
<th>Name</th>
<th>Mask</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>default</td>
<td>ddd mmm dd yyyy HH:MM:ss</td>
<td>Sat Jun 09 2007 17:46:21</td>
</tr>
<tr class="altBg">
<td>shortDate</td>
<td>m/d/yy</td>
<td>6/9/07</td>
</tr>
<tr>
<td>mediumDate</td>
<td>mmm d, yyyy</td>
<td>Jun 9, 2007</td>
</tr>
<tr class="altBg">
<td>longDate</td>
<td>mmmm d, yyyy</td>
<td>June 9, 2007</td>
</tr>
<tr>
<td>fullDate</td>
<td>dddd, mmmm d, yyyy</td>
<td>Saturday, June 9, 2007</td>
</tr>
<tr class="altBg">
<td>shortTime</td>
<td>h:MM TT</td>
<td>5:46 PM</td>
</tr>
<tr>
<td>mediumTime</td>
<td>h:MM:ss TT</td>
<td>5:46:21 PM</td>
</tr>
<tr class="altBg">
<td>longTime</td>
<td>h:MM:ss TT Z</td>
<td>5:46:21 PM EST</td>
</tr>
<tr>
<td>isoDate</td>
<td>yyyy-mm-dd</td>
<td>2007-06-09</td>
</tr>
<tr class="altBg">
<td>isoTime</td>
<td>HH:MM:ss</td>
<td>17:46:21</td>
</tr>
<tr>
<td>isoDateTime</td>
<td>yyyy-mm-dd&#8217;T'HH:MM:ss</td>
<td>2007-06-09T17:46:21</td>
</tr>
<tr class="altBg">
<td>isoUtcDateTime</td>
<td>UTC:yyyy-mm-dd&#8217;T'HH:MM:ss&#8217;Z&#8217;</td>
<td>2007-06-09T22:46:21Z</td>
</tr>
</tbody>
</table>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=Date%E5%AF%B9%E8%B1%A1%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%96%B9%E6%B3%95&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fdate%25e5%25af%25b9%25e8%25b1%25a1%25e6%25a0%25bc%25e5%25bc%258f%25e5%258c%2596%25e6%2596%25b9%25e6%25b3%2595%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fdate%25e5%25af%25b9%25e8%25b1%25a1%25e6%25a0%25bc%25e5%25bc%258f%25e5%258c%2596%25e6%2596%25b9%25e6%25b3%2595%2F&title=Date%E5%AF%B9%E8%B1%A1%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%96%B9%E6%B3%95?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fdate%25e5%25af%25b9%25e8%25b1%25a1%25e6%25a0%25bc%25e5%25bc%258f%25e5%258c%2596%25e6%2596%25b9%25e6%25b3%2595%2F&title=Date%E5%AF%B9%E8%B1%A1%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%96%B9%E6%B3%95&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fdate%25e5%25af%25b9%25e8%25b1%25a1%25e6%25a0%25bc%25e5%25bc%258f%25e5%258c%2596%25e6%2596%25b9%25e6%25b3%2595%2F&amp;title=Date%E5%AF%B9%E8%B1%A1%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%96%B9%E6%B3%95?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Date%E5%AF%B9%E8%B1%A1%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%96%B9%E6%B3%95&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2Fdate%25e5%25af%25b9%25e8%25b1%25a1%25e6%25a0%25bc%25e5%25bc%258f%25e5%258c%2596%25e6%2596%25b9%25e6%25b3%2595%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/date%e5%af%b9%e8%b1%a1%e6%a0%bc%e5%bc%8f%e5%8c%96%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>战士和苍蝇（纪念钱学森、贝时璋）</title>
		<link>http://www.zhangjingwei.com/archives/%e6%88%98%e5%a3%ab%e5%92%8c%e8%8b%8d%e8%9d%87%ef%bc%88%e7%ba%aa%e5%bf%b5%e9%92%b1%e5%ad%a6%e6%a3%ae%e3%80%81%e8%b4%9d%e6%97%b6%e7%92%8b%ef%bc%89/</link>
		<comments>http://www.zhangjingwei.com/archives/%e6%88%98%e5%a3%ab%e5%92%8c%e8%8b%8d%e8%9d%87%ef%bc%88%e7%ba%aa%e5%bf%b5%e9%92%b1%e5%ad%a6%e6%a3%ae%e3%80%81%e8%b4%9d%e6%97%b6%e7%92%8b%ef%bc%89/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 03:09:24 +0000</pubDate>
		<dc:creator>张经纬</dc:creator>
				<category><![CDATA[北京2009]]></category>
		<category><![CDATA[苍蝇]]></category>
		<category><![CDATA[战士]]></category>

		<guid isPermaLink="false">http://www.zhangjingwei.com/?p=1245</guid>
		<description><![CDATA[===========================================================================
Ｓｃｈｏｐｅｎｈａｕｅｒ〔２〕说过这样的话：要估定人的伟大，则精神上的大和体格上的大，那法则完全相反。后者距离愈远即愈小，前者却见得愈大。
正因为近则愈小，而且愈看见缺点和创伤，所以他就和我们一样，不是神道，不是妖怪，不是异兽。他仍然是人，不过如此。但也惟其如此，所以他是伟大的人。
战士战死了的时候，苍蝇们所首先发见的是他的缺点和伤痕〔3〕，嘬着，营营地叫着，以为得意，以为比死了的战士更英雄。但是战士已经战死了，不再来挥去他们。于是乎苍蝇们即更其营营地叫，自以为倒是不朽的声音，因为它们的完全，远在战士之上。
的确的，谁也没有发见过苍蝇们的缺点和创伤。
然而，有缺点的战士终竟是战士，完美的苍蝇也终竟不过是苍蝇。
去罢，苍蝇们！虽然生着翅子，还能营营，总不会超过战士的。你们这些虫豸们！
三月二十一日。
AA
〔１〕本篇最初发表于一九二五年三月二十四日北京《京报》附刊《民众文艺周刊》第十四号。
作者在同年四月三日《京报副刊》发表的《这是这么一个意思》中对本文曾有说明：“所谓战士者，是指中山先生和民国元年前后殉国而反受奴才们讥笑糟蹋的先烈；苍蝇则当然是指奴才们。”（见《集外集拾遗》）
〔２〕Ｓｃｈｏｐｅｎｈａｕｅｒ叔本华（１７８８—１８６０），德国哲学家，唯意志论者。这里引述的话，见他的《比喻·隐喻和寓言》一文。
===========================================================================
我补的：
〔3〕钱老上书亩产万斤，钱老与贝老联合上书推荐气功的相关论文。
能说什么呢？只好如阿Q或者疯子一样再读一遍战士和苍蝇吧。以此文来纪念两位先生并笑看这和谐的社会。



加入书签:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>===========================================================================<br />
Ｓｃｈｏｐｅｎｈａｕｅｒ〔２〕说过这样的话：要估定人的伟大，则精神上的大和体格上的大，那法则完全相反。后者距离愈远即愈小，前者却见得愈大。</p>
<p>正因为近则愈小，而且愈看见缺点和创伤，所以他就和我们一样，不是神道，不是妖怪，不是异兽。他仍然是人，不过如此。但也惟其如此，所以他是伟大的人。</p>
<p>战士战死了的时候，苍蝇们所首先发见的是他的缺点和伤痕〔3〕，嘬着，营营地叫着，以为得意，以为比死了的战士更英雄。但是战士已经战死了，不再来挥去他们。于是乎苍蝇们即更其营营地叫，自以为倒是不朽的声音，因为它们的完全，远在战士之上。</p>
<p>的确的，谁也没有发见过苍蝇们的缺点和创伤。</p>
<p>然而，有缺点的战士终竟是战士，完美的苍蝇也终竟不过是苍蝇。</p>
<p>去罢，苍蝇们！虽然生着翅子，还能营营，总不会超过战士的。你们这些虫豸们！</p>
<p>三月二十一日。</p>
<p>AA<br />
〔１〕本篇最初发表于一九二五年三月二十四日北京《京报》附刊《民众文艺周刊》第十四号。<br />
作者在同年四月三日《京报副刊》发表的《这是这么一个意思》中对本文曾有说明：“所谓战士者，是指中山先生和民国元年前后殉国而反受奴才们讥笑糟蹋的先烈；苍蝇则当然是指奴才们。”（见《集外集拾遗》）<br />
〔２〕Ｓｃｈｏｐｅｎｈａｕｅｒ叔本华（１７８８—１８６０），德国哲学家，唯意志论者。这里引述的话，见他的《比喻·隐喻和寓言》一文。<br />
===========================================================================</p>
<p>我补的：</p>
<p>〔3〕<span>钱老上书亩产万斤，钱老与贝老联合上书推荐气功的相关论文。</span></p>
<p>能说什么呢？只好如阿Q或者疯子一样再读一遍战士和苍蝇吧。以此文来纪念两位先生并笑看这和谐的社会。</p>



加入书签:


	<a rel="nofollow" class="thickbox" href="http://shuqian.qq.com/post?jumpback=1&title=%E6%88%98%E5%A3%AB%E5%92%8C%E8%8B%8D%E8%9D%87%EF%BC%88%E7%BA%AA%E5%BF%B5%E9%92%B1%E5%AD%A6%E6%A3%AE%E3%80%81%E8%B4%9D%E6%97%B6%E7%92%8B%EF%BC%89&uri=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e6%2588%2598%25e5%25a3%25ab%25e5%2592%258c%25e8%258b%258d%25e8%259d%2587%25ef%25bc%2588%25e7%25ba%25aa%25e5%25bf%25b5%25e9%2592%25b1%25e5%25ad%25a6%25e6%25a3%25ae%25e3%2580%2581%25e8%25b4%259d%25e6%2597%25b6%25e7%2592%258b%25ef%25bc%2589%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e6%2588%2598%25e5%25a3%25ab%25e5%2592%258c%25e8%258b%258d%25e8%259d%2587%25ef%25bc%2588%25e7%25ba%25aa%25e5%25bf%25b5%25e9%2592%25b1%25e5%25ad%25a6%25e6%25a3%25ae%25e3%2580%2581%25e8%25b4%259d%25e6%2597%25b6%25e7%2592%258b%25ef%25bc%2589%2F&title=%E6%88%98%E5%A3%AB%E5%92%8C%E8%8B%8D%E8%9D%87%EF%BC%88%E7%BA%AA%E5%BF%B5%E9%92%B1%E5%AD%A6%E6%A3%AE%E3%80%81%E8%B4%9D%E6%97%B6%E7%92%8B%EF%BC%89?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e6%2588%2598%25e5%25a3%25ab%25e5%2592%258c%25e8%258b%258d%25e8%259d%2587%25ef%25bc%2588%25e7%25ba%25aa%25e5%25bf%25b5%25e9%2592%25b1%25e5%25ad%25a6%25e6%25a3%25ae%25e3%2580%2581%25e8%25b4%259d%25e6%2597%25b6%25e7%2592%258b%25ef%25bc%2589%2F&title=%E6%88%98%E5%A3%AB%E5%92%8C%E8%8B%8D%E8%9D%87%EF%BC%88%E7%BA%AA%E5%BF%B5%E9%92%B1%E5%AD%A6%E6%A3%AE%E3%80%81%E8%B4%9D%E6%97%B6%E7%92%8B%EF%BC%89&n=1?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e6%2588%2598%25e5%25a3%25ab%25e5%2592%258c%25e8%258b%258d%25e8%259d%2587%25ef%25bc%2588%25e7%25ba%25aa%25e5%25bf%25b5%25e9%2592%25b1%25e5%25ad%25a6%25e6%25a3%25ae%25e3%2580%2581%25e8%25b4%259d%25e6%2597%25b6%25e7%2592%258b%25ef%25bc%2589%2F&amp;title=%E6%88%98%E5%A3%AB%E5%92%8C%E8%8B%8D%E8%9D%87%EF%BC%88%E7%BA%AA%E5%BF%B5%E9%92%B1%E5%AD%A6%E6%A3%AE%E3%80%81%E8%B4%9D%E6%97%B6%E7%92%8B%EF%BC%89?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow" class="thickbox" href="http://www.zhangjingwei.com/feed/?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=%E6%88%98%E5%A3%AB%E5%92%8C%E8%8B%8D%E8%9D%87%EF%BC%88%E7%BA%AA%E5%BF%B5%E9%92%B1%E5%AD%A6%E6%A3%AE%E3%80%81%E8%B4%9D%E6%97%B6%E7%92%8B%EF%BC%89&amp;body=http%3A%2F%2Fwww.zhangjingwei.com%2Farchives%2F%25e6%2588%2598%25e5%25a3%25ab%25e5%2592%258c%25e8%258b%258d%25e8%259d%2587%25ef%25bc%2588%25e7%25ba%25aa%25e5%25bf%25b5%25e9%2592%25b1%25e5%25ad%25a6%25e6%25a3%25ae%25e3%2580%2581%25e8%25b4%259d%25e6%2597%25b6%25e7%2592%258b%25ef%25bc%2589%2F" title="email"><img src="http://www.zhangjingwei.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.zhangjingwei.com/archives/%e6%88%98%e5%a3%ab%e5%92%8c%e8%8b%8d%e8%9d%87%ef%bc%88%e7%ba%aa%e5%bf%b5%e9%92%b1%e5%ad%a6%e6%a3%ae%e3%80%81%e8%b4%9d%e6%97%b6%e7%92%8b%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
