<?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>记事本 &#187; JavaScript</title>
	<atom:link href="http://www.zhoumingzhi.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhoumingzhi.com</link>
	<description>这里全是流水账</description>
	<lastBuildDate>Sun, 11 Dec 2011 09:49:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<atom:link rel='hub' href='http://www.zhoumingzhi.com/?pushpress=hub'/>
		<item>
		<title>如何制作拖放后的惯性效果（一）</title>
		<link>http://www.zhoumingzhi.com/2011/11/29/%e5%a6%82%e6%9e%9c%e5%88%b6%e4%bd%9c%e6%8b%96%e6%94%be%e5%90%8e%e7%9a%84%e6%83%af%e6%80%a7%e6%95%88%e6%9e%9c1/</link>
		<comments>http://www.zhoumingzhi.com/2011/11/29/%e5%a6%82%e6%9e%9c%e5%88%b6%e4%bd%9c%e6%8b%96%e6%94%be%e5%90%8e%e7%9a%84%e6%83%af%e6%80%a7%e6%95%88%e6%9e%9c1/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 03:53:37 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1348</guid>
		<description><![CDATA[现在很多交互都需要这样一个效果，在拖拽结束时，被拖拽的元素会因为惯性向前移动一段距离。接下来说一下如何实现这个效果。 这个运动的原理其实很简单，就是一个匀减速运动。匀减速运动也就是匀加速运动的一种，只是加速度的方向和速度方向符号相反。我们在中学的时候学过匀加速运动的公式为：S = vt + (1/2)at^2；用文字表达就是在t时刻，物体移动的距离S为：初始速度v * t + (1/2) * 加速度a * t的平方。在这个公式中，我们可以将加速度a和初始速度v视为常量，将t当做变量，就可以知道在t时刻物体移动的距离了。那么问题又转到了如何对a和v求解。加速度a在这个问题中其实只是一个系数而已，我们可以设定a为1秒钟减少10000像素/秒的运动速度。(a = 10000)。那么到目前为止只有初始速度v是未知的了。 在这个动画中初始速度为我拖拽时松开鼠标那一刻的瞬时速度。我们知道计算平均速度的公式为v = s / t，如果这个t你取得足够的小，那么在t时间段移动的距离s除以t就是物体在某一点上的瞬时速度。接下来的问题就是如何确定这个t，以及如何确定在t时间段中物体移动的距离s。 我们知道在移动鼠标的时候会触发mousemove事件，而在持续移动鼠标的过程中，前后相邻的两个mousemove事件的时间间隔非常小，也就符合我们上面说的t时间段，在主流浏览器中event对象会有个timeStamp属性来标识这个事件是什么时刻发生的（在IE中因为要用window.event来取得事件，window.event没有timeStamp属性，所以要用new Date来计算事件发生的时刻），那么对t的求解就变得显而易见了：var t = e1.timeStamp &#8211; e0.timeStamp; 同时在t时间段移动的距离在X轴方向上为var s = e1.clientX &#8211; e1.clientX; 有了上面的思路，在鼠标松开的瞬时速度也就变得迎刃而解了。鼠标松开的瞬时速度v即为(e1.timeStamp &#8211; e0.timeStamp) / (e1.clientX &#8211; e1.clientX); e1为最后一次mousemove事件，e0为倒数第二次mousemove事件。如何保存e1和e0可以用以下代码： 待续……]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/11/29/%e5%a6%82%e6%9e%9c%e5%88%b6%e4%bd%9c%e6%8b%96%e6%94%be%e5%90%8e%e7%9a%84%e6%83%af%e6%80%a7%e6%95%88%e6%9e%9c1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>本地存储的兼容解决方案</title>
		<link>http://www.zhoumingzhi.com/2011/10/12/%e6%9c%ac%e5%9c%b0%e5%ad%98%e5%82%a8%e7%9a%84%e5%85%bc%e5%ae%b9%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</link>
		<comments>http://www.zhoumingzhi.com/2011/10/12/%e6%9c%ac%e5%9c%b0%e5%ad%98%e5%82%a8%e7%9a%84%e5%85%bc%e5%ae%b9%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 08:20:01 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[本地存储]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1343</guid>
		<description><![CDATA[IE浏览器用userData，主流浏览器用LocalStorage来解决本地存储的需求。userData存储的数据对于同一目录下的地址是可见的，如http://www.zhoumingzhi.com/1/foo.html可以访问到http://www.zhoumingzhi.com/1/bar.html存的数据。而LocalStorage存储的数据对相同域名下的所有页面都是可见的。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/10/12/%e6%9c%ac%e5%9c%b0%e5%ad%98%e5%82%a8%e7%9a%84%e5%85%bc%e5%ae%b9%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google+中URL的渐进增强</title>
		<link>http://www.zhoumingzhi.com/2011/07/18/google-plus%e4%b8%adurl%e7%9a%84%e6%b8%90%e8%bf%9b%e5%a2%9e%e5%bc%ba/</link>
		<comments>http://www.zhoumingzhi.com/2011/07/18/google-plus%e4%b8%adurl%e7%9a%84%e6%b8%90%e8%bf%9b%e5%a2%9e%e5%bc%ba/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 03:05:02 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1335</guid>
		<description><![CDATA[在高级浏览器下点击Google+的一些链接，并不是直接从服务器返回完整的页面，而是通过AJAX刷新页面的局部，并且更新地址栏中完整的URL。其中对URL的操作是靠HTML5中的history.pushState来实现的。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/07/18/google-plus%e4%b8%adurl%e7%9a%84%e6%b8%90%e8%bf%9b%e5%a2%9e%e5%bc%ba/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>YUIBuilder在MAC OS下中文乱码的解决方法</title>
		<link>http://www.zhoumingzhi.com/2011/07/05/yuibuilder%e5%9c%a8mac-os%e4%b8%8b%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.zhoumingzhi.com/2011/07/05/yuibuilder%e5%9c%a8mac-os%e4%b8%8b%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 09:14:31 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[前端相关]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[yuibuilder]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1329</guid>
		<description><![CDATA[在MAC机上装了一个YUIBuilder，压缩带中文注释的文件总是出现乱码问题。跟踪了一下，发现是ant执行io操作的时候输出编码不对。解决方法是在环境变量中加入ANT_OPTS="-Dfile.encoding=UTF-8"]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/07/05/yuibuilder%e5%9c%a8mac-os%e4%b8%8b%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nodejs中websocket传输大量数据</title>
		<link>http://www.zhoumingzhi.com/2011/06/20/nodejs%e4%b8%adwebsocket%e4%bc%a0%e8%be%93%e5%a4%a7%e9%87%8f%e6%95%b0%e6%8d%ae/</link>
		<comments>http://www.zhoumingzhi.com/2011/06/20/nodejs%e4%b8%adwebsocket%e4%bc%a0%e8%be%93%e5%a4%a7%e9%87%8f%e6%95%b0%e6%8d%ae/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 07:33:16 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[nodejs]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1324</guid>
		<description><![CDATA[用nodejs当websocket server时，当客户端传输的数据量比较大时，数据会分片到达服务器，这时socket的data处理函数接收到的只是整个数据中的一部分，因此我们要将分片的数据拼合起来再做处理。当最后的数据到达时，数据的末尾是\ufffd，所以可以靠判断数据中是否包含\ufffd来指示整个数据是否已经全部接收。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/06/20/nodejs%e4%b8%adwebsocket%e4%bc%a0%e8%be%93%e5%a4%a7%e9%87%8f%e6%95%b0%e6%8d%ae/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>快速清除多选框的已选中状态</title>
		<link>http://www.zhoumingzhi.com/2011/05/10/%e5%bf%ab%e9%80%9f%e6%b8%85%e9%99%a4%e5%a4%9a%e9%80%89%e6%a1%86%e7%9a%84%e5%b7%b2%e9%80%89%e4%b8%ad%e7%8a%b6%e6%80%81/</link>
		<comments>http://www.zhoumingzhi.com/2011/05/10/%e5%bf%ab%e9%80%9f%e6%b8%85%e9%99%a4%e5%a4%9a%e9%80%89%e6%a1%86%e7%9a%84%e5%b7%b2%e9%80%89%e4%b8%ad%e7%8a%b6%e6%80%81/#comments</comments>
		<pubDate>Tue, 10 May 2011 15:57:37 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[性能优化]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1306</guid>
		<description><![CDATA[工作中碰到一个变态的性能问题。CMS中有个页面，上面有个多选框，其中有14000个选项。页面中提供给用户一个按钮，点击这个按钮时要清除已选中状态。本文介绍如何快速的完成清除工作。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/05/10/%e5%bf%ab%e9%80%9f%e6%b8%85%e9%99%a4%e5%a4%9a%e9%80%89%e6%a1%86%e7%9a%84%e5%b7%b2%e9%80%89%e4%b8%ad%e7%8a%b6%e6%80%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用JavaScript判断IE版本号</title>
		<link>http://www.zhoumingzhi.com/2011/05/09/%e7%94%a8javascript%e5%88%a4%e6%96%adie%e7%89%88%e6%9c%ac%e5%8f%b7/</link>
		<comments>http://www.zhoumingzhi.com/2011/05/09/%e7%94%a8javascript%e5%88%a4%e6%96%adie%e7%89%88%e6%9c%ac%e5%8f%b7/#comments</comments>
		<pubDate>Mon, 09 May 2011 05:06:53 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1299</guid>
		<description><![CDATA[一段用JavaScript判断IE版本号的代码。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/05/09/%e7%94%a8javascript%e5%88%a4%e6%96%adie%e7%89%88%e6%9c%ac%e5%8f%b7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>获取选区相对于浏览器窗口的位置</title>
		<link>http://www.zhoumingzhi.com/2011/04/12/%e8%8e%b7%e5%8f%96%e9%80%89%e5%8c%ba%e7%9b%b8%e5%af%b9%e4%ba%8e%e6%b5%8f%e8%a7%88%e5%99%a8%e7%aa%97%e5%8f%a3%e7%9a%84%e4%bd%8d%e7%bd%ae/</link>
		<comments>http://www.zhoumingzhi.com/2011/04/12/%e8%8e%b7%e5%8f%96%e9%80%89%e5%8c%ba%e7%9b%b8%e5%af%b9%e4%ba%8e%e6%b5%8f%e8%a7%88%e5%99%a8%e7%aa%97%e5%8f%a3%e7%9a%84%e4%bd%8d%e7%bd%ae/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 08:37:36 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[选区]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1292</guid>
		<description><![CDATA[获取选区相对于浏览器窗口的位置]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/04/12/%e8%8e%b7%e5%8f%96%e9%80%89%e5%8c%ba%e7%9b%b8%e5%af%b9%e4%ba%8e%e6%b5%8f%e8%a7%88%e5%99%a8%e7%aa%97%e5%8f%a3%e7%9a%84%e4%bd%8d%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>对大量子节点DOM操作的最佳实践方式</title>
		<link>http://www.zhoumingzhi.com/2011/03/16/%e5%af%b9%e5%a4%a7%e9%87%8f%e5%ad%90%e8%8a%82%e7%82%b9dom%e6%93%8d%e4%bd%9c%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e6%96%b9%e5%bc%8f/</link>
		<comments>http://www.zhoumingzhi.com/2011/03/16/%e5%af%b9%e5%a4%a7%e9%87%8f%e5%ad%90%e8%8a%82%e7%82%b9dom%e6%93%8d%e4%bd%9c%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e6%96%b9%e5%bc%8f/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 07:48:12 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[性能]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1259</guid>
		<description><![CDATA[有时要处理一个DOM节点下面的大量子节点，比如对一个ul一次性插入几百个li，或者清空一个ul下面的所有li，或者是替换掉ul下面的所有内容。本文记录一下最佳的实践方式。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/03/16/%e5%af%b9%e5%a4%a7%e9%87%8f%e5%ad%90%e8%8a%82%e7%82%b9dom%e6%93%8d%e4%bd%9c%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e6%96%b9%e5%bc%8f/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>使用minify合并YUI请求</title>
		<link>http://www.zhoumingzhi.com/2011/02/26/use-minify-combine-yui-request/</link>
		<comments>http://www.zhoumingzhi.com/2011/02/26/use-minify-combine-yui-request/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 14:26:11 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Combo]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1247</guid>
		<description><![CDATA[记录如何使用minify合并YUI请求。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/02/26/use-minify-combine-yui-request/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>阶乘</title>
		<link>http://www.zhoumingzhi.com/2011/02/16/factorial/</link>
		<comments>http://www.zhoumingzhi.com/2011/02/16/factorial/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 16:37:34 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[尾递归]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1240</guid>
		<description><![CDATA[一个阶乘函数的笔记]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/02/16/factorial/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Nodejs和MongoDB初体验</title>
		<link>http://www.zhoumingzhi.com/2011/01/13/nodejs%e5%92%8cmongodb%e5%88%9d%e4%bd%93%e9%aa%8c/</link>
		<comments>http://www.zhoumingzhi.com/2011/01/13/nodejs%e5%92%8cmongodb%e5%88%9d%e4%bd%93%e9%aa%8c/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 07:31:52 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[nodejs]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1208</guid>
		<description><![CDATA[学习了一下Nodejs和MongoDB，写了个示例程序，读取数据库中产品的列表。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2011/01/13/nodejs%e5%92%8cmongodb%e5%88%9d%e4%bd%93%e9%aa%8c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>新浪操作textarea的工具函数</title>
		<link>http://www.zhoumingzhi.com/2010/12/29/app-textarea-utils/</link>
		<comments>http://www.zhoumingzhi.com/2010/12/29/app-textarea-utils/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 06:59:13 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[textarea]]></category>
		<category><![CDATA[新浪]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1204</guid>
		<description><![CDATA[从新浪的库上copy下来的操作textarea的工具函数，用做学习研究目的。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/12/29/app-textarea-utils/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript解析QueryString</title>
		<link>http://www.zhoumingzhi.com/2010/09/27/parse-querystring-using-javascript/</link>
		<comments>http://www.zhoumingzhi.com/2010/09/27/parse-querystring-using-javascript/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 09:31:31 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1044</guid>
		<description><![CDATA[JavaScript解析QueryString，记录一下。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/09/27/parse-querystring-using-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>弹出窗口的兼容方案</title>
		<link>http://www.zhoumingzhi.com/2010/08/30/%e5%bc%b9%e5%87%ba%e7%aa%97%e5%8f%a3%e7%9a%84%e5%85%bc%e5%ae%b9%e6%96%b9%e6%a1%88/</link>
		<comments>http://www.zhoumingzhi.com/2010/08/30/%e5%bc%b9%e5%87%ba%e7%aa%97%e5%8f%a3%e7%9a%84%e5%85%bc%e5%ae%b9%e6%96%b9%e6%a1%88/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 11:33:25 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[position: fixed]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=1014</guid>
		<description><![CDATA[记录一下弹出窗口的兼容方案]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/08/30/%e5%bc%b9%e5%87%ba%e7%aa%97%e5%8f%a3%e7%9a%84%e5%85%bc%e5%ae%b9%e6%96%b9%e6%a1%88/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>判断元素位置关系的一些方法</title>
		<link>http://www.zhoumingzhi.com/2010/08/02/%e5%88%a4%e6%96%ad%e5%85%83%e7%b4%a0%e4%bd%8d%e7%bd%ae%e5%85%b3%e7%b3%bb%e7%9a%84%e4%b8%80%e4%ba%9b%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.zhoumingzhi.com/2010/08/02/%e5%88%a4%e6%96%ad%e5%85%83%e7%b4%a0%e4%bd%8d%e7%bd%ae%e5%85%b3%e7%b3%bb%e7%9a%84%e4%b8%80%e4%ba%9b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 07:18:19 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=944</guid>
		<description><![CDATA[在很多场景下，要判断一个元素是不是包含另一个元素，本文记录了一些方法。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/08/02/%e5%88%a4%e6%96%ad%e5%85%83%e7%b4%a0%e4%bd%8d%e7%bd%ae%e5%85%b3%e7%b3%bb%e7%9a%84%e4%b8%80%e4%ba%9b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>底部浮动条的一种兼容方案</title>
		<link>http://www.zhoumingzhi.com/2010/07/23/%e5%ba%95%e9%83%a8%e6%b5%ae%e5%8a%a8%e6%9d%a1%e7%9a%84%e4%b8%80%e7%a7%8d%e5%85%bc%e5%ae%b9%e6%96%b9%e6%a1%88/</link>
		<comments>http://www.zhoumingzhi.com/2010/07/23/%e5%ba%95%e9%83%a8%e6%b5%ae%e5%8a%a8%e6%9d%a1%e7%9a%84%e4%b8%80%e7%a7%8d%e5%85%bc%e5%ae%b9%e6%96%b9%e6%a1%88/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 06:27:23 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[position: fixed]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=932</guid>
		<description><![CDATA[底部浮动条的一种兼容方案。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/07/23/%e5%ba%95%e9%83%a8%e6%b5%ae%e5%8a%a8%e6%9d%a1%e7%9a%84%e4%b8%80%e7%a7%8d%e5%85%bc%e5%ae%b9%e6%96%b9%e6%a1%88/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>几个版本的Y组合子</title>
		<link>http://www.zhoumingzhi.com/2010/07/08/y-combinator/</link>
		<comments>http://www.zhoumingzhi.com/2010/07/08/y-combinator/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 01:43:34 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Y组合子]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=914</guid>
		<description><![CDATA[记录一下几个版本的Y组合子]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/07/08/y-combinator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery实例为什么在firebug下表现出数组的特征</title>
		<link>http://www.zhoumingzhi.com/2010/07/06/how-do-jquery-objects-imitate-arrays/</link>
		<comments>http://www.zhoumingzhi.com/2010/07/06/how-do-jquery-objects-imitate-arrays/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 09:58:10 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=908</guid>
		<description><![CDATA[一个对象有length属性，数字的下标，和一个splice方法，在firebug下用console.debug()方法就会输出一个数组。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/07/06/how-do-jquery-objects-imitate-arrays/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>图片旋转的小例子</title>
		<link>http://www.zhoumingzhi.com/2010/06/11/image-rotate/</link>
		<comments>http://www.zhoumingzhi.com/2010/06/11/image-rotate/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 03:00:53 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=787</guid>
		<description><![CDATA[图片翻转的小例子，很多微博都在用。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/06/11/image-rotate/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mouseenter和mouseleave</title>
		<link>http://www.zhoumingzhi.com/2010/03/12/mouseenter-and-mouseleave/</link>
		<comments>http://www.zhoumingzhi.com/2010/03/12/mouseenter-and-mouseleave/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 08:08:12 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=629</guid>
		<description><![CDATA[流水帐，记录一下mouseenter和mouseleave的实现方法。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/03/12/mouseenter-and-mouseleave/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>用jQuery判断一个元素是否显示</title>
		<link>http://www.zhoumingzhi.com/2010/03/01/how-do-you-test-if-something-is-hidden-in-jquery/</link>
		<comments>http://www.zhoumingzhi.com/2010/03/01/how-do-you-test-if-something-is-hidden-in-jquery/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 03:51:16 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=566</guid>
		<description><![CDATA[用jQuery判断一个元素是否显示。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/03/01/how-do-you-test-if-something-is-hidden-in-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6中select元素z-index的bug</title>
		<link>http://www.zhoumingzhi.com/2010/02/09/ie6-select-element-bug/</link>
		<comments>http://www.zhoumingzhi.com/2010/02/09/ie6-select-element-bug/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 13:22:54 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=532</guid>
		<description><![CDATA[通常的情况下，IE6中的select元素永远是在最上面的，即使覆盖在它上面的元素的z-index再大也不起作用。为了解决这个问题，在这两个元素中间插入一个iframe。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/02/09/ie6-select-element-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>relatedTarget, fromElement, toElement</title>
		<link>http://www.zhoumingzhi.com/2010/02/06/relatedtarget/</link>
		<comments>http://www.zhoumingzhi.com/2010/02/06/relatedtarget/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 13:02:21 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=506</guid>
		<description><![CDATA[记录一下。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/02/06/relatedtarget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>elem.style.left与elem.offsetLeft的区别</title>
		<link>http://www.zhoumingzhi.com/2010/01/24/style-left-and-offsetleft/</link>
		<comments>http://www.zhoumingzhi.com/2010/01/24/style-left-and-offsetleft/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 14:30:28 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=435</guid>
		<description><![CDATA[记录一下。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/01/24/style-left-and-offsetleft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>预览本地图片的二三事</title>
		<link>http://www.zhoumingzhi.com/2010/01/23/preview-local-image/</link>
		<comments>http://www.zhoumingzhi.com/2010/01/23/preview-local-image/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 07:01:00 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=423</guid>
		<description><![CDATA[到目前为止，只有IE和FF可以预览本地图片。IE下可以直接浏览本地图片，通过input[type=file]的value属性就可以取到本地图片的路径。而在FF下，有getAsDataURL的方法可以生成图片的DataURL，然后赋值给img标签。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/01/23/preview-local-image/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>滚动页面到某个元素</title>
		<link>http://www.zhoumingzhi.com/2010/01/20/scrollintoview/</link>
		<comments>http://www.zhoumingzhi.com/2010/01/20/scrollintoview/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 15:17:17 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=412</guid>
		<description><![CDATA[MSDN上搬过来的，记录一下。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/01/20/scrollintoview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>星级评价控件（jQuery版）</title>
		<link>http://www.zhoumingzhi.com/2010/01/15/rating-widget/</link>
		<comments>http://www.zhoumingzhi.com/2010/01/15/rating-widget/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 11:53:51 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=369</guid>
		<description><![CDATA[星级评价控件，用jQuery封装了一下。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/01/15/rating-widget/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>扩展jQuery选择器</title>
		<link>http://www.zhoumingzhi.com/2010/01/12/%e6%89%a9%e5%b1%95jquery%e9%80%89%e6%8b%a9%e5%99%a8/</link>
		<comments>http://www.zhoumingzhi.com/2010/01/12/%e6%89%a9%e5%b1%95jquery%e9%80%89%e6%8b%a9%e5%99%a8/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 07:04:41 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=310</guid>
		<description><![CDATA[jQuery本身提供了一些强大的带有冒号的选择器，比如:first, :even, :odd这些。但是这些还满足不了需求的话，可以自己扩展一个选择器。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2010/01/12/%e6%89%a9%e5%b1%95jquery%e9%80%89%e6%8b%a9%e5%99%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[转贴] JS中如何判断字符串类型的数字</title>
		<link>http://www.zhoumingzhi.com/2009/12/29/js%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%b1%bb%e5%9e%8b%e7%9a%84%e6%95%b0%e5%ad%97/</link>
		<comments>http://www.zhoumingzhi.com/2009/12/29/js%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%b1%bb%e5%9e%8b%e7%9a%84%e6%95%b0%e5%ad%97/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 02:57:53 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=271</guid>
		<description><![CDATA[用JS判断字符串能不能转换为数字。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/12/29/js%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%b1%bb%e5%9e%8b%e7%9a%84%e6%95%b0%e5%ad%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>跨域请求的iframe解决方案（2）</title>
		<link>http://www.zhoumingzhi.com/2009/12/20/cross-domain-by-using-iframe-2/</link>
		<comments>http://www.zhoumingzhi.com/2009/12/20/cross-domain-by-using-iframe-2/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 14:13:24 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=231</guid>
		<description><![CDATA[跨域请求的iframe解决方案。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/12/20/cross-domain-by-using-iframe-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>跨域请求的iframe解决方案（1）</title>
		<link>http://www.zhoumingzhi.com/2009/12/19/cross-domain-by-using-iframe-1/</link>
		<comments>http://www.zhoumingzhi.com/2009/12/19/cross-domain-by-using-iframe-1/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 09:31:25 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=201</guid>
		<description><![CDATA[跨域请求的iframe解决方案。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/12/19/cross-domain-by-using-iframe-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE下的JavaScript条件编译</title>
		<link>http://www.zhoumingzhi.com/2009/12/08/conditional-compile-ie/</link>
		<comments>http://www.zhoumingzhi.com/2009/12/08/conditional-compile-ie/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 08:26:33 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=171</guid>
		<description><![CDATA[/*@cc_on!@*/0 &#038;& alert("别用IE了");]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/12/08/conditional-compile-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>不要用setAttribute设置className</title>
		<link>http://www.zhoumingzhi.com/2009/12/08/set-classname/</link>
		<comments>http://www.zhoumingzhi.com/2009/12/08/set-classname/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 08:20:01 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=168</guid>
		<description><![CDATA[创建了一个新的元素，然后添加class，发现用setAttribute("class", "foo")这种方式在IE6下不起作用。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/12/08/set-classname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>获取元素在页面的绝对位置</title>
		<link>http://www.zhoumingzhi.com/2009/11/22/get-element-coords/</link>
		<comments>http://www.zhoumingzhi.com/2009/11/22/get-element-coords/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 05:35:00 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Position]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/2009/11/22/%e8%8e%b7%e5%8f%96%e5%85%83%e7%b4%a0%e5%9c%a8%e9%a1%b5%e9%9d%a2%e7%9a%84%e7%bb%9d%e5%af%b9%e4%bd%8d%e7%bd%ae%e3%80%82/</guid>
		<description><![CDATA[获取元素在页面的绝对位置。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/11/22/get-element-coords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>改写jQuery UI的Accordion</title>
		<link>http://www.zhoumingzhi.com/2009/10/21/modify-jqueryui-accordion/</link>
		<comments>http://www.zhoumingzhi.com/2009/10/21/modify-jqueryui-accordion/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 14:52:05 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Accordion]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=64</guid>
		<description><![CDATA[最近在做一个项目，其中有个UI要做成类似jQuery UI中Accordion的样子。但是Accordion在某一时刻只可以展开一个Panel，所以就改写了一下Accordion，让它可以同时展开多个Panel。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/10/21/modify-jqueryui-accordion/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>改进jQuery UI的Tabs</title>
		<link>http://www.zhoumingzhi.com/2009/10/18/improve-jqueryui-tabs/</link>
		<comments>http://www.zhoumingzhi.com/2009/10/18/improve-jqueryui-tabs/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 11:43:11 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=23</guid>
		<description><![CDATA[现将jQuery的Tabs控件添加了两个方法next和prev及一个事件beforegotonext，以便更好的支持用户操作。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/10/18/improve-jqueryui-tabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>禁用或启用一个ValidationGroup里的全部验证控件</title>
		<link>http://www.zhoumingzhi.com/2009/01/15/validationgroupenable/</link>
		<comments>http://www.zhoumingzhi.com/2009/01/15/validationgroupenable/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 07:54:30 +0000</pubDate>
		<dc:creator>小寒</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://www.zhoumingzhi.com/?p=143</guid>
		<description><![CDATA[禁用或启用一个ValidationGroup里的全部验证控件。]]></description>
		<wfw:commentRss>http://www.zhoumingzhi.com/2009/01/15/validationgroupenable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

