<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/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:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/fengzi_shen" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/fengzi_shen" type="application/rss+xml"></fs:self_link><lastBuildDate>Sun, 12 Apr 2009 02:00:00 GMT</lastBuildDate><title>fengzi_shen的专栏</title><link>http://blog.csdn.net/fengzi_shen/</link><item><title>php information</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4066071.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4066071.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4066071.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4066071</trackback:ping><description>1.php支持引用变量$x = 1;$y = &amp;$x;此时，$x和$y指向同一块内存&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4066071.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010396/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/csdn.net/fengzi_shen/264010396/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 12 Apr 2009 10:00:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4066071.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4066071.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4066071.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010396/4235959</fs:itemid></item><item><title>sql join</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4065939.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4065939.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4065939.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4065939</trackback:ping><description>&lt;br /&gt;内连接：&lt;br /&gt;1.select * from a inner join b on a.id = b.id&lt;br /&gt;2.select * from a join b on a.id = b.id&lt;br /&gt;3.select * from a, b on a.id = b.id&lt;br /&gt;&lt;br /&gt;外连接&lt;br /&gt;1.左外连接&lt;br /&gt;select * from a left join b on a.id = b.id&lt;br /&gt;2.右外连接&lt;br /&gt;select * from a right join b on a.id = b.id&lt;br /&gt;3.全外连接&lt;br /&gt;select * from a full join b on a.id = b.id&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4065939.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010397/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/csdn.net/fengzi_shen/264010397/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 12 Apr 2009 08:14:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4065939.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4065939.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/04/12/4065939.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010397/4235959</fs:itemid></item><item><title>VS.Net下的JavaScript调试</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053159.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4053159.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4053159.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4053159</trackback:ping><description>&lt;br /&gt; 备注：在新机器上启用Vs2008调试JS失败，在困惑一段时间后才想起了配置的问题，谨鉴于此，特整理此文及上篇文章，以牢固记忆，以免遗忘！在2008中仅做到第一步和第三步即可。&lt;br /&gt;第一步：首先检查一下web.config文件的设置&lt;br /&gt;把debug的属性该为true，如下：&lt;br /&gt;第二步：打开Internet 信息服务(IIS)管理器，在默认网站-&gt;右键单击你想调试的web项目-&gt;属性-&gt;虚拟目录选项卡-&gt;配置-&gt;在新打开的windows窗口中选择调试选项卡-&gt;把“启用 ASP 服务器端脚本调试”和“启用 ASP 客户端脚本调试”两个复选框选中。（请看截图1）&lt;br /&gt;图1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;第三步：打开IE，单击菜单栏的“工具”-&gt;Internet 选项-&gt;高级选项卡-&gt;取消“禁用脚本调试（Internet&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4053159.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010398/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/csdn.net/fengzi_shen/264010398/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 07 Apr 2009 09:17:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053159.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053159.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053159.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010398/4235959</fs:itemid></item><item><title>少走弯路的十条忠告</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053158.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4053158.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4053158.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4053158</trackback:ping><description>&lt;br /&gt;如何在涉世之初少走弯路，有一个好的开端，开始一番成功的事业？以下是一些先行者积累的10条有益的涉世忠告。好好地遵循、把握这些忠告和建议吧，比起所学的课堂课程来，它毫不逊色！ &lt;br /&gt;&lt;br /&gt;1. 买个闹钟，以便按时叫醒你。 &lt;br /&gt;&lt;br /&gt;贪睡和不守时，都将成为你工作和事业上的绊脚石，任何时候都一样。不仅要学会准时，更要学会提前。就如你坐车去某地，沿途的风景很美，你忍不住下车看一看，后来虽然你还是赶到了某地，却不是准时到达。“闹钟”只是一种简单的标志和提示，真正灵活、实用的时间，掌握在每个人的心中。 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. 如果你不喜欢现在的工作，要么辞职不干，要么就闭嘴不言。 &lt;br /&gt;&lt;br /&gt;初出茅庐，往往眼高手低，心高气傲，大事做不了，小事不愿做。不要养成挑三拣四的习惯。不要雨天烦打伞，不带伞又怕淋雨，处处表现出不满的情绪。记住，不做则已，要做就要做好。 &lt;br /&gt;&lt;br /&gt;3. 每个人都有孤独的时候。 &lt;br /&gt;&lt;br /&gt;要学会忍受孤独，这样才会成熟起来。年轻人嘻嘻哈哈、打打闹闹惯了，到了一个陌生的环境，面对形形色色的&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4053158.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010399/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/csdn.net/fengzi_shen/264010399/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 07 Apr 2009 09:16:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053158.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053158.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/04/07/4053158.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010399/4235959</fs:itemid></item><item><title>SQL中返回刚插入记录的ID</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041851.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4041851.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4041851.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4041851</trackback:ping><description>&lt;br /&gt;一、要获取此ID,最简单的方法就是:(以下举一简单实用的例子) &lt;br /&gt;--创建数据库和表&lt;br /&gt;create database MyDataBase&lt;br /&gt;use MyDataBase&lt;br /&gt;create table mytable&lt;br /&gt;(&lt;br /&gt;id int identity(1,1),&lt;br /&gt;name varchar(20)&lt;br /&gt;)&lt;br /&gt;--执行这个SQL,就能查出来刚插入记录对应的自增列的值&lt;br /&gt;insert into mytable values('李四')&lt;br /&gt;select @@identity&lt;br /&gt;二、三种方式的比较 &lt;br /&gt;SQL Server 2000中，有三个比较类似的功能：他们分别是：SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY，它们都返回插入到 IDENTITY 列中的值。&lt;br /&gt;IDENT_CURRENT 返回为任何会话和任何作用域中的特定表最后生成的标识值。IDENT_CURRENT 不受作用域和会话的限制，而受限于指定的表。IDENT_CU&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4041851.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010400/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/csdn.net/fengzi_shen/264010400/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 02 Apr 2009 04:16:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041851.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041851.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041851.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010400/4235959</fs:itemid></item><item><title>sql搜索条件包含通配符</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041652.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4041652.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4041652.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4041652</trackback:ping><description>&lt;br /&gt;可以搜索通配符字符。有两种方法可指定平常用作通配符的字符： 使用 ESCAPE 关键字定义转义符。在模式中，当转义符置于通配符之前时，该通配符就解释为普通字符。例如，要搜索在任意位置包含字符串 5% 的字符串，请使用：
WHERE ColumnA LIKE '%5/%%' ESCAPE '/'&lt;br /&gt;在上述 LIKE 子句中，前导和结尾百分号 (%) 解释为通配符，而斜杠 (/) 之后的百分号解释为字符 %。在方括号 ([ ]) 中只包含通配符本身。要搜索破折号 (-) 而不是用它指定搜索范围，请将破折号指定为方括号内的第一个字符：
WHERE ColumnA LIKE '9[-]5'&lt;br /&gt;下表显示了括在方括号内的通配符的用法。符号含义LIKE '5[%]'5%LIKE '5%'5 后跟 0 个或更多字符的字符串LIKE '[_]n'_nLIKE '_n'an, in, on (and so on)LIKE '[a-cdf]'a, b, c, d, or fLIKE '[-acdf]'-, a, c, d, or fLIKE '[ [ ]'[LIKE ']']&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4041652.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010401/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/csdn.net/fengzi_shen/264010401/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 02 Apr 2009 02:18:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041652.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041652.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041652.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010401/4235959</fs:itemid></item><item><title>js中escape,encodeURI,encodeURIComponent</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041488.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4041488.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4041488.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4041488</trackback:ping><description>&lt;br /&gt;js对文字进行编码涉及3个函数：escape,encodeURI,encodeURIComponent，相应3个解码函数：unescape,decodeURI,decodeURIComponent&lt;br /&gt;1、   传递参数时需要使用encodeURIComponent，这样组合的url才不会被#等特殊字符截断。                            &lt;br /&gt;例如：&lt;br /&gt;2、   进行url跳转时可以整体使用encodeURI&lt;br /&gt;例如：Location.href=encodeURI(&quot;http://cang.baidu.com/do/s?word=百度&amp;ct=21&quot;);&lt;br /&gt;3、   js使用数&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4041488.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010402/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/csdn.net/fengzi_shen/264010402/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 02 Apr 2009 01:09:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041488.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041488.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/04/01/4041488.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010402/4235959</fs:itemid></item><item><title>.net版本名字的一些记录</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/03/27/4030662.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4030662.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4030662.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4030662</trackback:ping><description>&lt;br /&gt;47#if (CLI_1_0)&lt;br /&gt; 48[assembly: AssemblyTitle(&quot;log4net for CLI 1.0 Compatible Frameworks&quot;)]&lt;br /&gt; 49#elif (NET_1_0)&lt;br /&gt; 50[assembly: AssemblyTitle(&quot;log4net for .NET Framework 1.0&quot;)]&lt;br /&gt; 51#elif (NET_1_1)&lt;br /&gt; 52[assembly: AssemblyTitle(&quot;log4net for .NET Framework 1.1&quot;)]&lt;br /&gt; 53#elif (NET_2_0)&lt;br /&gt; 54[assembly: AssemblyTitle(&quot;log4net for .NET Framework 2.0&quot;)]&lt;br /&gt; 55#elif (NETCF_1_0)&lt;br /&gt; 56[assembly: AssemblyTitle(&quot;log4net for .NET Compact Framework 1.0&quot;)]&lt;br /&gt; 57#elif (MONO_1&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4030662.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010403/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/csdn.net/fengzi_shen/264010403/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sat, 28 Mar 2009 02:10:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/03/27/4030662.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/03/27/4030662.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/03/27/4030662.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010403/4235959</fs:itemid></item><item><title>JS优化建议</title><link>http://blog.csdn.net/fengzi_shen/archive/2009/03/19/4005864.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/4005864.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/4005864.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4005864</trackback:ping><description>&lt;br /&gt;作者：ShiningRay @ Nirvana Studio&lt;br /&gt;随着网络的发展，网速和机器速度的提高，越来越多的网站用到了丰富客户端技术。而现在Ajax则是最为流行的一种方式。JavaScript是一种解释型语言，所以能无法达到和C/Java之类的水平，限制了它能在客户端所做的事情，为了能改进他的性能，我想基于我以前给JavaScript做过的很多测试来谈谈自己的经验，希望能帮助大家改进自己的JavaScript脚本性能。语言层次方面循环&lt;br /&gt;循环是很常用的一个控制结构，大部分东西要依靠它来完成，在JavaScript中，我们可以使用for(;;),while(),for(in)三种循环，事实上，这三种循环中for(in)的效率极差，因为他需要查询散列键，只要可以就应该尽量少用。for(;;)和while循环的性能应该说基本（平时使用时）等价。&lt;br /&gt;而事实上，如何使用这两个循环，则有很大讲究。我在测试中有些很有意思的情况，见附录。最后得出的结论是：&lt;br /&gt;如果是循环变量递增或递减，不要单独对循环变量赋值，应该在它最后一次读取的时候使用嵌套的++或--&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/4005864.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010404/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/csdn.net/fengzi_shen/264010404/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 20 Mar 2009 05:45:00 +0800</pubDate><author>疯子神</author><comments>http://blog.csdn.net/fengzi_shen/archive/2009/03/19/4005864.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2009/03/19/4005864.aspx</guid><dc:creator>疯子神</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2009/03/19/4005864.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010404/4235959</fs:itemid></item><item><title>微软的面试题及答案</title><link>http://blog.csdn.net/fengzi_shen/archive/2008/08/22/2814417.aspx</link><wfw:comment>http://blog.csdn.net/fengzi_shen/comments/2814417.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fengzi_shen/comments/commentRss/2814417.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2814417</trackback:ping><description>&lt;br /&gt;第一组     &lt;br /&gt;　　1.烧一根不均匀的绳，从头烧到尾总共需要1个小时。现在有若干条材质相同的绳子，问如何用烧绳的方法来计时一个小时十五分钟呢? &lt;br /&gt;&lt;br /&gt;　　2.你有一桶果冻，其中有黄色、绿色、红色三种，闭上眼睛抓取同种颜色的两个。抓取多少个就可以确定你肯定有两个同一颜色的果冻? &lt;br /&gt;&lt;br /&gt;　　3.如果你有无穷多的水，一个3公升的提捅，一个5公升的提捅，两只提捅形状上下都不均匀，问你如何才能准确称出4公升的水? &lt;br /&gt;&lt;br /&gt;　　4.一个岔路口分别通向诚实国和说谎国。来了两个人，已知一个是诚实国的，另一个是说谎国的。诚实国永远说实话，说谎国永远说谎话。现在你要去说谎国，但不知道应该走哪条路，需要问这两个人。请问应该怎么问? &lt;br /&gt;&lt;br /&gt;　　5.12个球一个天平，现知道只有一个和其它的重量不同，问怎样称才能用三次就找到那个球。13个呢?(注意此题并未说明那个球的重量是轻是重，所以需要仔细考虑) &lt;br /&gt;&lt;br /&gt;　　6.在9个点上画10条直线，要求每条直线上至少有三个点? &lt;br /&gt;&lt;br /&gt;　　7.在一天的24小时之中，时钟的时针、分针和秒&lt;img src =&quot;http://blog.csdn.net/fengzi_shen/aggbug/2814417.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/fengzi_shen/264010405/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/csdn.net/fengzi_shen/264010405/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 22 Aug 2008 22:36:00 +0800</pubDate><author>fengzi_shen</author><comments>http://blog.csdn.net/fengzi_shen/archive/2008/08/22/2814417.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/fengzi_shen/archive/2008/08/22/2814417.aspx</guid><dc:creator>fengzi_shen</dc:creator><fs:srclink>http://blog.csdn.net/fengzi_shen/archive/2008/08/22/2814417.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/fengzi_shen/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/fengzi_shen/~6128021/264010405/4235959</fs:itemid></item></channel></rss>