<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.code.sh/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.code.sh" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/script" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 02 Sep 2010 14:22:27 GMT</lastBuildDate><title>搞基百科</title><description>咱是纯洁滴小骑兵</description><image><url>http://creativecommons.org/images/public/somerights20.png</url><title>搞基百科</title><link>http://code.sh</link></image><link>http://code.sh</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Thu, 02 Sep 2010 14:22:27 GMT</pubDate><item><title>常用的MySQL数据类型</title><link>http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/</link><content:encoded>&lt;p&gt;本文转自&lt;a title=&quot;solasi的空间 http://hi.baidu.com/solasi&quot; href=&quot;http://hi.baidu.com/solasi&quot;&gt;让理想飞起来&lt;/a&gt;&lt;br /&gt;
感谢作者的汇总:)&lt;/p&gt;
&lt;p&gt;===&lt;br /&gt;
最常用的MySQL数据类型是VARCHAR, DECIMAL, DATE, INT, TEXT 和 TIMESTAMP。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;第一个：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;VARCHAR通常用来表示最多为255个字符的变量长度字符串。如果你要储存和处理字母数字类的数据，这种数据类型是最合适的。适用于这类数据的典型例 子包括人名，邮政编码，电话号码和不超过255个字符长度的任意字母数字组合。那些要用来计算的数字不要用VARCHAR类型保存，因为可能会导致一些与 计算相关的问题。换句话说，可能影响到计算的准确性和完整性。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;第二个：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;DECIMAL最适合保存那些将被用于计算的数据。在MySQL中，我们可以指定保存一些正当的数字。还可以指定是否允许存在负值。&lt;/p&gt;
&lt;p&gt;指定DECIMAL类型的长度会有些棘手。例如，如果你需要在小数点前面保存五位数，且小数点后只保留三位，那么在数据库中其适当的长度将 是：Decimal(5+3,3)或 Decimal(8,3)，可以使用的数据包括：12345.678，56872.690，11.6和12.568等。而这些数字则会引发出错信 息：128781.1，8972865.231。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;第三个：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;建议用DATE数据类型来保存日期。MySQL中默认的日期格式是yyyy-mm-dd。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;第四个：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;INT数据类型可以用来保存那些不包含小数点的数字。INT代表整数。&lt;br /&gt;
有些整数类型以及他们最多所能拥有的数字位我们必须有所了解：&lt;/p&gt;
&lt;p&gt;·TINYINT——这个类型最多可容纳三位数。&lt;br /&gt;
·SMALLINT——最多可容纳五位数。&lt;br /&gt;
·MEDIUMINT——最多可容纳八位数。&lt;br /&gt;
·INT——可以容纳十位数。&lt;br /&gt;
·BIGINT——最多可容纳二十位数。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;第五个：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;TEXT可以接受文本输入，VARCHAR只能接受255个字符，但是TEXT可以用来存储超量的数据。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;第六个：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;当TIMESTAMP数据类型被选定，可以点击“CURRENT_TIMESTAMP”作为默认，MySQL会自动返回每个MySQL数据插入的确切时间。&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;下面是一些推荐的数据库设计规格：&lt;br /&gt;
&lt;strong&gt;1. 第一个数值域：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;要收集的数据：客户姓名&lt;br /&gt;
推荐域名：customername&lt;br /&gt;
MySQL数据类型：VARCHAR&lt;br /&gt;
允许的客户名最大长度：64&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. 第二个数值域：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;要收集的数据：价格&lt;br /&gt;
推荐域名：price&lt;br /&gt;
MySQL数据类型：DECIMAL&lt;br /&gt;
小数点前最多允许位数：4&lt;br /&gt;
小数点后保留到3位&lt;br /&gt;
最终的小数位长度：DECIMAL(4+3, 3) 或者 DECIMAL(7, 3)&lt;br /&gt;
不允许出现负值&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. 第三个数值域：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;要收集的数据：购买日期&lt;br /&gt;
推荐域名：datepurchased&lt;br /&gt;
MySQL数据类型：DATE&lt;br /&gt;
最大长度：不可用&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. 第四个数值域：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;要收集的数据：产品序列号&lt;br /&gt;
推荐域名：productkey&lt;br /&gt;
MySQL数据类型：SMALLINT&lt;br /&gt;
该变量的最大长度：5&lt;br /&gt;
其他属性：少于5时用0填补，不允许出现负值&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5. 第五个数值域：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;要收集的数据：投诉细则&lt;br /&gt;
推荐域名：complaintdetails&lt;br /&gt;
MySQL数据类型：TEXT&lt;br /&gt;
最大字符长度：取决于用户的输入情况&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;6. 第六个数值域：&lt;/strong&gt;&lt;/p&gt;
&lt;p id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot;&gt;要收集的数据：投诉受理日期&lt;br /&gt;
推荐域名：reveivingdate&lt;br /&gt;
MySQL数据类型：TIMESTAMP&lt;br /&gt;
其他属性：为Current_Timestamp设置默认值，这样它便可以记录投诉的确切时间。&lt;br /&gt;
===&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/data-type/&quot; rel=&quot;tag&quot;&gt;data type&lt;/a&gt;, &lt;a href=&quot;http://code.sh/tag/mysql/&quot; rel=&quot;tag&quot;&gt;MySQL&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901692/script/feedsky/s.gif?r=http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901692/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901692/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>本文转自让理想飞起来 感谢作者的汇总:) === 最常用的MySQL数据类型是VARCHAR, DECIMAL, DATE, INT, TEXT 和 TIMESTAMP。 第一个： VARCHAR通常用来表示最多为255个字符的变量长度字符串。如果你要储存和处理字母数字类的数据，这种数据类型是最合适的。适用于这类数据的典型例 子包括人名，邮政编码，电话号码和不超过255个字符长度的任意字母数字组合。那些要用来计算的数字不要用VARCHAR类型保存，因为可能会导致一些与 计算相关的问题。换句话说，可能影响到计算的准确性和完整性。 第二个： DECIMAL最适合保存那些将被用于计算的数据。在MySQL中，我们可以指定保存一些正当的数字。还可以指定是否允许存在负值。 指定DECIMAL类型的长度会有些棘手。例如，如果你需要在小数点前面保存五位数，且小数点后只保留三位，那么在数据库中其适当的长度将 是：Decimal(5+3,3)或 Decimal(8,3)，可以使用的数据包括：12345.678，56872.690，11.6和12.568等。而这些数字则会引发出错信 息：128781.1，8972865.231。 第三个： 建议用DATE数据类型来保存日期。MySQL中默认的日期格式是yyyy-mm-dd。 第四个： INT数据类型可以用来保存那些不包含小数点的数字。INT代表整数。 有些整数类型以及他们最多所能拥有的数字位我们必须有所了解： ·TINYINT——这个类型最多可容纳三位数。 ·SMALLINT——最多可容纳五位数。 ·MEDIUMINT——最多可容纳八位数。 ·INT——可以容纳十位数。 ·BIGINT——最多可容纳二十位数。 第五个： TEXT可以接受文本输入，VARCHAR只能接受255个字符，但是TEXT可以用来存储超量的数据。 第六个： 当TIMESTAMP数据类型被选定，可以点击“CURRENT_TIMESTAMP”作为默认，MySQL会自动返回每个MySQL数据插入的确切时间。 === 下面是一些推荐的数据库设计规格： 1. 第一个数值域： 要收集的数据：客户姓名 推荐域名：customername MySQL数据类型：VARCHAR 允许的客户名最大长度：64 2. 第二个数值域： 要收集的数据：价格 推荐域名：price MySQL数据类型：DECIMAL 小数点前最多允许位数：4 小数点后保留到3位 最终的小数位长度：DECIMAL(4+3, 3) 或者 DECIMAL(7, 3) 不允许出现负值 [...]&lt;img src=&quot;http://www1.feedsky.com/t1/408901692/script/feedsky/s.gif?r=http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901692/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901692/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>MySQL</category><category>data type</category><category>DataBase</category><pubDate>Thu, 02 Sep 2010 22:22:27 +0800</pubDate><author>bigCat</author><comments>http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/#comments</comments><guid isPermaLink="false">http://code.sh/?p=175</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/database/%e5%b8%b8%e7%94%a8%e7%9a%84mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901692/5356135</fs:itemid></item><item><title>ubuntu 10.04 networking disabled 网络已禁用</title><link>http://code.sh/linux/ubuntu-10-04-networking-disabled/</link><content:encoded>&lt;p&gt;after suspend.... 休眠后就傻逼了&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;

sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo service network-manager start

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;bug..... shit&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/linux/ubuntu-10-04-networking-disabled/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/linux/ubuntu-10-04-networking-disabled/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/bug/&quot; rel=&quot;tag&quot;&gt;bug&lt;/a&gt;, &lt;a href=&quot;http://code.sh/tag/ubuntu/&quot; rel=&quot;tag&quot;&gt;ubuntu&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901693/script/feedsky/s.gif?r=http://code.sh/linux/ubuntu-10-04-networking-disabled/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901693/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901693/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/linux/ubuntu-10-04-networking-disabled/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>after suspend.... 休眠后就傻逼了 sudo service network-manager stop sudo rm /var/lib/NetworkManager/NetworkManager.state sudo service network-manager start bug..... shit © bigCat for 搞基百科, 2010. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags: bug, ubuntu&lt;img src=&quot;http://www1.feedsky.com/t1/408901693/script/feedsky/s.gif?r=http://code.sh/linux/ubuntu-10-04-networking-disabled/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901693/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901693/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>ubuntu</category><category>Linux</category><category>bug</category><pubDate>Tue, 31 Aug 2010 23:19:43 +0800</pubDate><author>bigCat</author><comments>http://code.sh/linux/ubuntu-10-04-networking-disabled/#comments</comments><guid isPermaLink="false">http://code.sh/?p=174</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/linux/ubuntu-10-04-networking-disabled/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901693/5356135</fs:itemid></item><item><title>-ms-interpolation-mode Attribute | msInterpolationMode Property</title><link>http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms530822%28VS.85%29.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms530822%28VS.85%29.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sets or retrieves the interpolation (resampling) method used to stretch images.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Syntax&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/th&gt;
&lt;td&gt;{ -ms-interpolation-mode : sMode }&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Scripting&lt;/strong&gt;&lt;/th&gt;
&lt;td&gt;[ sMode&lt;strong&gt; =&lt;/strong&gt; ] &lt;em&gt;object&lt;/em&gt;.&lt;strong&gt;style.msInterpolationMode&lt;/strong&gt; [ = &lt;em&gt;v&lt;/em&gt; ]&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Possible Values&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;sMode&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;String&lt;/strong&gt; that  			specifies or receives one of the following values.
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;nearest-neighbor&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Always use nearest neighbor interpolation mode.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;bicubic&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Always use high-quality bicubic interpolation mode.&lt;/dd&gt;
&lt;/dl&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The property is read/write 	for all objects except the following, for which it is read-only: 	 	&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms537841%28v=VS.85%29.aspx&quot;&gt;currentStyle&lt;/a&gt;.  	 	The property has no default value. The Microsoft Cascading Style Sheets (CSS) extension is 	not  inherited.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Remarks&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;msInterpolationMode&lt;/strong&gt; was introduced in Windows Internet Explorer 7.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;msInterpolationMode&lt;/strong&gt; property applies to stretched images only. For example, if the natural  width of the image is 200x200 but the page designer specifies that the  height and width should be 400x400, then the image will be stretched to  the new dimensions using the nearest-neighbor algorithm, unless  otherwise specified.&lt;/p&gt;
&lt;p&gt;If the zoom level of the page is 100%, the default interpolation is nearest-neighbor,  otherwise bicubic mode is used.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;The following example applies the &lt;strong&gt;-ms-interpolation-mode&lt;/strong&gt; attribute to determine the resampling algorithm of stretched images. The sample requires Internet Explorer 7 or later to view.&lt;/p&gt;
&lt;div&gt;&lt;a name=&quot;CodeSpippet0&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;a title=&quot;Copy to clipboard.&quot; href=&quot;javascript:CodeSnippet_CopyCode('CodeSnippetContainerCode0');&quot;&gt;Copy&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;CodeSnippetContainerCode0&quot;&gt;
&lt;div&gt;
&lt;pre&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;style&amp;gt;
img.highqual { -ms-interpolation-mode:bicubic }
img.nearestn { -ms-interpolation-mode:nearest-neighbor }
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;img src=&quot;sphere.jpg&quot; width=&quot;175&quot; height=&quot;350&quot;&amp;gt;
&amp;lt;img src=&quot;sphere.jpg&quot; width=&quot;175&quot; height=&quot;350&quot;&amp;gt;
&amp;lt;img src=&quot;sphere.jpg&quot; width=&quot;175&quot; height=&quot;350&quot;&amp;gt;
&amp;lt;p&amp;gt;Change the zoom level of the page to see the difference.&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;This feature  requires Windows Internet Explorer 7 or later. Click the following icon  to install the latest version. Then reload this page to view the  sample.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://go.microsoft.com/fwlink/?linkid=122860&quot;&gt;&lt;img src=&quot;http://i.msdn.microsoft.com/ms530822.ieget_animated%28en-us,VS.85%29.gif&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Standards Information&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;This property is a Microsoft extension to &lt;a href=&quot;http://www.w3.org/style/css/&quot; target=&quot;_top&quot;&gt; Cascading Style Sheets (CSS)&lt;/a&gt; &lt;img id=&quot;leave-site&quot; src=&quot;http://i.msdn.microsoft.com/Hash/030c41d9079671d09a62d8e2c1db6973.gif&quot; alt=&quot;World Wide Web link&quot; /&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Applies To&lt;/strong&gt;&lt;/p&gt;
&lt;table id=&quot;oATTable&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td id=&quot;oATData&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms537841%28v=VS.85%29.aspx&quot;&gt; currentStyle&lt;/a&gt;, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms535259%28v=VS.85%29.aspx&quot;&gt; IMG&lt;/a&gt;, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms537843%28v=VS.85%29.aspx&quot;&gt; runtimeStyle&lt;/a&gt;, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms537842%28v=VS.85%29.aspx&quot;&gt; style&lt;/a&gt;, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dd347049%28v=VS.85%29.aspx&quot;&gt; CSSCurrentStyleDeclaration Constructor&lt;/a&gt;, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dd347051%28v=VS.85%29.aspx&quot;&gt; CSSRuleStyleDeclaration Constructor&lt;/a&gt;, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dd347052%28v=VS.85%29.aspx&quot;&gt; CSSStyleDeclaration Constructor&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901694/script/feedsky/s.gif?r=http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901694/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901694/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>http://msdn.microsoft.com/en-us/library/ms530822%28VS.85%29.aspx Sets or retrieves the interpolation (resampling) method used to stretch images. Syntax HTML { -ms-interpolation-mode : sMode } Scripting [ sMode = ] object.style.msInterpolationMode [ = v ] Possible Values sMode String that specifies or receives one of the following values. nearest-neighbor Always use nearest neighbor interpolation mode. bicubic Always use high-quality bicubic interpolation [...]&lt;img src=&quot;http://www1.feedsky.com/t1/408901694/script/feedsky/s.gif?r=http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901694/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901694/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>CSS</category><pubDate>Mon, 30 Aug 2010 10:52:00 +0800</pubDate><author>bigCat</author><comments>http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/#comments</comments><guid isPermaLink="false">http://code.sh/?p=173</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/css/ms-interpolation-mode-attribute-msinterpolationmode-property/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901694/5356135</fs:itemid></item><item><title>Chromium-extensions popup onunload or onbeforeunload</title><link>http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://groups.google.com/a/chromium.org/group/chromium-extensions/browse_thread/thread/cc6673d8e47a9bf4/06b9ab24ff5ac7e5?pli=1&quot;&gt;http://groups.google.com/a/chromium.org/group/chromium-extensions/browse_thread/thread/cc6673d8e47a9bf4/06b9ab24ff5ac7e5?pli=1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Antony Sargent&lt;br /&gt;
View profile&lt;br /&gt;
 More options Apr 7, 5:55 am&lt;br /&gt;
Actually for your case, there are two approaches you might take:&lt;br /&gt;
1) Use the messaging APIs to set up a Port between the popup and background&lt;br /&gt;
page. You then should get a onDisconnect event in the background page when&lt;br /&gt;
the popup goes away.&lt;br /&gt;
2) Have the background dispatch events using chrome.extension.getViews() -&lt;br /&gt;
if there is a popup in the list, you use the DOMWindow handle to call a&lt;br /&gt;
function in the popup directly. &lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901695/script/feedsky/s.gif?r=http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901695/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901695/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>http://groups.google.com/a/chromium.org/group/chromium-extensions/browse_thread/thread/cc6673d8e47a9bf4/06b9ab24ff5ac7e5?pli=1 Antony Sargent View profile More options Apr 7, 5:55 am Actually for your case, there are two approaches you might take: 1) Use the messaging APIs to set up a Port between the popup and background page. You then should get a onDisconnect event in the background page when the popup goes away. 2) [...]&lt;img src=&quot;http://www1.feedsky.com/t1/408901695/script/feedsky/s.gif?r=http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901695/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901695/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>beatWife</category><pubDate>Sun, 29 Aug 2010 13:49:01 +0800</pubDate><author>bigCat</author><comments>http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/#comments</comments><guid isPermaLink="false">http://code.sh/?p=171</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/beatwife/chromium-extensions-popup-onunload-or-onbeforeunload/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901695/5356135</fs:itemid></item><item><title>[Chrome plugin] beatWife FAQ</title><link>http://code.sh/beatwife/faq/</link><content:encoded>&lt;p&gt;Download: &lt;a href=&quot;https://chrome.google.com/extensions/detail/cgoebjgkiiapifcpclljbdbmmodmmdff&quot;&gt;https://chrome.google.com/extensions/detail/cgoebjgkiiapifcpclljbdbmmodmmdff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;don't have any questions yet~&lt;/p&gt;
&lt;p&gt;涉及技术&lt;br /&gt;
hello world&lt;br /&gt;
localStorage&lt;br /&gt;
AJAX&lt;br /&gt;
-webkit-animation&lt;/p&gt;
&lt;p&gt;chrome.browserAction.setIcon() 更换图标&lt;/p&gt;
&lt;p&gt;logs&lt;/p&gt;
&lt;p&gt;v1 抽脸 计数(bug)&lt;/p&gt;
&lt;p&gt;v1.1 屏蔽计数 明早再看&lt;/p&gt;
&lt;p&gt;v2 add popup and big button&lt;/p&gt;
&lt;p&gt;vX 增加可持续抽老婆的乐趣，慢慢搞&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/beatwife/faq/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/beatwife/faq/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901696/script/feedsky/s.gif?r=http://code.sh/beatwife/faq/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901696/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901696/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/beatwife/faq/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>Download: https://chrome.google.com/extensions/detail/cgoebjgkiiapifcpclljbdbmmodmmdff don't have any questions yet~ 涉及技术 hello world localStorage AJAX -webkit-animation chrome.browserAction.setIcon() 更换图标 logs v1 抽脸 计数(bug) v1.1 屏蔽计数 明早再看 v2 add popup and big button vX 增加可持续抽老婆的乐趣，慢慢搞 © bigCat for 搞基百科, 2010. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags:&lt;img src=&quot;http://www1.feedsky.com/t1/408901696/script/feedsky/s.gif?r=http://code.sh/beatwife/faq/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901696/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901696/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>beatWife</category><pubDate>Sun, 29 Aug 2010 01:07:28 +0800</pubDate><author>bigCat</author><comments>http://code.sh/beatwife/faq/#comments</comments><guid isPermaLink="false">http://code.sh/?p=169</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/beatwife/faq/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901696/5356135</fs:itemid></item><item><title>Javascript的匿名函数</title><link>http://code.sh/js/anonymous_function/</link><content:encoded>&lt;h3&gt;原文 &lt;a href=&quot;http://dancewithnet.com/2008/05/07/javascript-anonymous-function/&quot; target=&quot;_blank&quot;&gt;http://dancewithnet.com/2008/05/07/javascript-anonymous-function/&lt;/a&gt;&lt;/h3&gt;
&lt;h3&gt;一、什么是匿名函数？&lt;/h3&gt;
&lt;p&gt;在Javascript定义一个函数一般有如下三种方式：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;函数关键字(function)语句&lt;/strong&gt;：
&lt;pre&gt;&lt;code&gt;function fnMethodName(x){alert(x);}&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;函数字面量(Function Literals)&lt;/strong&gt;：
&lt;pre&gt;&lt;code&gt;var fnMethodName = function(x){alert(x);}&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Function()构造函数&lt;/strong&gt;：
&lt;pre&gt;&lt;code&gt;var fnMethodName = new Function('x','alert(x);')&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;上面三种方法定义了同一个方法函数fnMethodName，第1种就是最常用的方法，后两种都是把一个函数复制给变量fnMethodName，而这个函数是没有名字的，即匿名函数。实际上，&lt;a href=&quot;http://en.wikipedia.org/wiki/Anonymous_function&quot;&gt;相当多的语言都有匿名函数&lt;/a&gt;。&lt;/p&gt;
&lt;h3&gt;二、函数字面量和Function()构造函数的区别&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;虽然函数字面量是一个匿名函数，但语法允许为其指定任意一个函数名，当写递归函数时可以调用它自己，使用Function()构造函数则不行。
&lt;pre&gt;&lt;code&gt;var f = function fact(x) {
  if (x &amp;lt; = 1) return 1;
  else return x*fact(x-1);
};&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Function()构造函数允许运行时Javascript代码动态的创建和编译。在这个方式上它类似全局函数eval()。&lt;/li&gt;
&lt;li&gt;Function()构造函数每次执行时都解析函数主体，并创建一个新的函数对象。所以当在一个循环或者频繁执行的函数中调用Function()构造函数的效率是非常低的。相反，函数字面量却不是每次遇到都重新编译的。&lt;/li&gt;
&lt;li&gt;用Function()构造函数创建一个函数时并不遵循典型的作用域，它一直把它当作是顶级函数来执行。
&lt;pre&gt;&lt;code&gt;var y = &quot;global&quot;;
function constructFunction() {
    var y = &quot;local&quot;;
    return new Function(&quot;return y&quot;);  //  无法获取局部变量
}
alert(constructFunction()());  // 输出 &quot;global&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;和函数关键字定义相比Function()构造器有自己的特点且要难以使用的多，所以这项技术通常很少使用。而函数字面量表达式和函数关键字定义非常接近。考虑前面的区别，虽然有消息说字面量的匿名函数在OS X 10.4.3下的某些webkit的引擎下有bug，但我们平常所说的匿名函数均指采用函数字面量形式的匿名函数。更多详细内容可以阅读《JavaScript: The Definitive Guide, 5th Edition》的Functions那章。&lt;/p&gt;
&lt;h3&gt;三、匿名函数的代码模式&lt;/h3&gt;
&lt;p&gt;昨天&lt;a href=&quot;http://www.hedgerwow.com&quot;&gt;hedger wang&lt;/a&gt;在他的blog介绍了&lt;a href=&quot;http://www.hedgerwow.com/360/dhtml/js-anonymous-function-patterns.html&quot;&gt;几种匿名函数的代码模式&lt;/a&gt;：&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;错误模式&lt;/strong&gt;：其无法工作，浏览器会报语法错。&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function(){
  alert(1);
}();&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;函数字面量&lt;/strong&gt;：首先声明一个函数对象，然后执行它。
&lt;pre&gt;&lt;code&gt;(function(){
  alert(1);
} ) ( );&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;优先表达式&lt;/strong&gt;：由于Javascript执行表达式是从圆括号里面到外面，所以可以用圆括号强制执行声明的函数。
&lt;pre&gt;&lt;code&gt;( function(){
  alert(2);
} ( ) );&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Void操作符&lt;/strong&gt;：用void操作符去执行一个没有用圆括号包围的一个单独操作数。
&lt;pre&gt;&lt;code&gt;void function(){
  alert(3);
}()&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;这三种方式是等同的，hedger wang因为个人原因比较喜欢第3种，而在实际应用中我看到的和使用的都是第1种。&lt;/p&gt;
&lt;h3&gt;四、匿名函数的应用&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;http://dancewithnet.com/2007/12/04/a-javascript-module-pattern/&quot;&gt;《Javascript的一种模块模式》&lt;/a&gt;中的第一句话就是“全局变量是魔鬼”。配合var关键字，匿名函数可以有效的保证在页面上写入Javascript，而不会造成全局变量的污染。这在给一个不是很熟悉的页面增加Javascript时非常有效，也很优美。实际上，&lt;a href=&quot;http://developer.yahoo.com/yui/&quot;&gt;YUI&lt;/a&gt;以及其相应的范例中大量使用匿名函数，其他的Javascript库中也不乏大量使用。&lt;/li&gt;
&lt;li id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot;&gt;Javascript的函数式编程(functional programming)的基石。具体请看&lt;a href=&quot;http://www.ibm.com/developerworks/cn/web/wa-javascript.html&quot;&gt;《用函数式编程技术编写优美的 JavaScript》&lt;/a&gt;和&lt;a href=&quot;http://shiningray.cn/functional_javascript_programming.html&quot;&gt;《函数式JavaScript编程指南》&lt;/a&gt;。&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/js/anonymous_function/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/js/anonymous_function/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901697/script/feedsky/s.gif?r=http://code.sh/js/anonymous_function/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901697/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901697/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/js/anonymous_function/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>原文 http://dancewithnet.com/2008/05/07/javascript-anonymous-function/ 一、什么是匿名函数？ 在Javascript定义一个函数一般有如下三种方式： 函数关键字(function)语句： function fnMethodName(x){alert(x);} 函数字面量(Function Literals)： var fnMethodName = function(x){alert(x);} Function()构造函数： var fnMethodName = new Function('x','alert(x);') 上面三种方法定义了同一个方法函数fnMethodName，第1种就是最常用的方法，后两种都是把一个函数复制给变量fnMethodName，而这个函数是没有名字的，即匿名函数。实际上，相当多的语言都有匿名函数。 二、函数字面量和Function()构造函数的区别 虽然函数字面量是一个匿名函数，但语法允许为其指定任意一个函数名，当写递归函数时可以调用它自己，使用Function()构造函数则不行。 var f = function fact(x) { if (x &amp;#60; = 1) return 1; else return x*fact(x-1); }; Function()构造函数允许运行时Javascript代码动态的创建和编译。在这个方式上它类似全局函数eval()。 Function()构造函数每次执行时都解析函数主体，并创建一个新的函数对象。所以当在一个循环或者频繁执行的函数中调用Function()构造函数的效率是非常低的。相反，函数字面量却不是每次遇到都重新编译的。 用Function()构造函数创建一个函数时并不遵循典型的作用域，它一直把它当作是顶级函数来执行。 var y = &quot;global&quot;; function constructFunction() { var y = &quot;local&quot;; return new [...]&lt;img src=&quot;http://www1.feedsky.com/t1/408901697/script/feedsky/s.gif?r=http://code.sh/js/anonymous_function/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901697/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901697/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>JavaScript</category><pubDate>Sat, 28 Aug 2010 16:17:37 +0800</pubDate><author>bigCat</author><comments>http://code.sh/js/anonymous_function/#comments</comments><guid isPermaLink="false">http://code.sh/?p=167</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/js/anonymous_function/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901697/5356135</fs:itemid></item><item><title>自动获取input坐标,赋值给提示</title><link>http://code.sh/js/offset/</link><content:encoded>&lt;pre&gt;&lt;code&gt;$('input').focus(function(){$('.pop').css({'left':$(this).offset().left,'top':$(this).offset().top+25}).removeClass('none')});&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;例如input高度25，那么top+25修正&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/js/offset/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/js/offset/#comments&quot;&gt;array [2]&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901698/script/feedsky/s.gif?r=http://code.sh/js/offset/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901698/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901698/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/js/offset/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>$('input').focus(function(){$('.pop').css({'left':$(this).offset().left,'top':$(this).offset().top+25}).removeClass('none')}); 例如input高度25，那么top+25修正 © bigCat for 搞基百科, 2010. &amp;#124; Permalink &amp;#124; array [2] &amp;#124; (miao) Post tags:&lt;img src=&quot;http://www1.feedsky.com/t1/408901698/script/feedsky/s.gif?r=http://code.sh/js/offset/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901698/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901698/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>JavaScript</category><pubDate>Wed, 25 Aug 2010 22:24:23 +0800</pubDate><author>bigCat</author><comments>http://code.sh/js/offset/#comments</comments><guid isPermaLink="false">http://code.sh/?p=165</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/js/offset/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901698/5356135</fs:itemid></item><item><title>IE Filter</title><link>http://code.sh/css/filter/</link><content:encoded>&lt;p&gt;http://placenamehere.com/article/384/CSS3BoxShadowinInternetExplorerBlurShadow&lt;/p&gt;
&lt;p&gt;http://www.fetchak.com/ie-css3/&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/css/filter/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/css/filter/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/filter/&quot; rel=&quot;tag&quot;&gt;filter&lt;/a&gt;, &lt;a href=&quot;http://code.sh/tag/ie/&quot; rel=&quot;tag&quot;&gt;ie&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901699/script/feedsky/s.gif?r=http://code.sh/css/filter/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901699/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901699/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/css/filter/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>http://placenamehere.com/article/384/CSS3BoxShadowinInternetExplorerBlurShadow http://www.fetchak.com/ie-css3/ © bigCat for 搞基百科, 2010. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags: filter, ie&lt;img src=&quot;http://www1.feedsky.com/t1/408901699/script/feedsky/s.gif?r=http://code.sh/css/filter/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901699/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901699/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>CSS</category><category>filter</category><category>ie</category><pubDate>Wed, 25 Aug 2010 16:39:27 +0800</pubDate><author>bigCat</author><comments>http://code.sh/css/filter/#comments</comments><guid isPermaLink="false">http://code.sh/?p=164</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/css/filter/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901699/5356135</fs:itemid></item><item><title>iPad在非滚动元素内部无法滚动</title><link>http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/</link><content:encoded>&lt;p&gt;不过书上说~~ 要在非滚动元素（frame、textara等）内部滚动的话，要不就是加onscroll事件，要么是培养用户双指滚动的习惯- -！&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/ipad/&quot; rel=&quot;tag&quot;&gt;iPad&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901700/script/feedsky/s.gif?r=http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901700/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901700/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>不过书上说~~ 要在非滚动元素（frame、textara等）内部滚动的话，要不就是加onscroll事件，要么是培养用户双指滚动的习惯- -！ © bigCat for 搞基百科, 2010. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags: iPad&lt;img src=&quot;http://www1.feedsky.com/t1/408901700/script/feedsky/s.gif?r=http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901700/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901700/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Apple</category><category>iPad</category><pubDate>Tue, 24 Aug 2010 20:15:32 +0800</pubDate><author>bigCat</author><comments>http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/#comments</comments><guid isPermaLink="false">http://code.sh/?p=162</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/apple/ipad%e5%9c%a8%e9%9d%9e%e6%bb%9a%e5%8a%a8%e5%85%83%e7%b4%a0%e5%86%85%e9%83%a8%e6%97%a0%e6%b3%95%e6%bb%9a%e5%8a%a8/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901700/5356135</fs:itemid></item><item><title>alpha 透明 png 的 VML 解决方案</title><link>http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</link><content:encoded>&lt;p&gt;http://www.dillerdesign.com/experiment/DD_belatedPNG/#technical_summary&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2010. |
&lt;a href=&quot;http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408901701/script/feedsky/s.gif?r=http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901701/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901701/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>http://www.dillerdesign.com/experiment/DD_belatedPNG/#technical_summary © bigCat for 搞基百科, 2010. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags:&lt;img src=&quot;http://www1.feedsky.com/t1/408901701/script/feedsky/s.gif?r=http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/script/408901701/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/script/408901701/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>CSS</category><pubDate>Mon, 23 Aug 2010 12:44:50 +0800</pubDate><author>bigCat</author><comments>http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/#comments</comments><guid isPermaLink="false">http://code.sh/?p=161</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/css/alpha-%e9%80%8f%e6%98%8e-png-%e7%9a%84-vml-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/408901701/5356135</fs:itemid></item></channel></rss>