<?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>庆亮的博客-webgame架构 &#187; setTimeout</title>
	<atom:link href="http://www.qingliangcn.com/tag/settimeout/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.qingliangcn.com</link>
	<description>关注LAMP&#124;PHP源代码分析&#124;web架构&#124;PHP扩展&#124;Erlang&#124;服务端架构</description>
	<lastBuildDate>Fri, 10 Jun 2011 04:10:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>javascript之setTimeout使用详解</title>
		<link>http://www.qingliangcn.com/2009/06/javascript%e4%b9%8bsettimeout%e4%bd%bf%e7%94%a8%e8%af%a6%e8%a7%a3/</link>
		<comments>http://www.qingliangcn.com/2009/06/javascript%e4%b9%8bsettimeout%e4%bd%bf%e7%94%a8%e8%af%a6%e8%a7%a3/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 10:01:13 +0000</pubDate>
		<dc:creator>庆亮</dc:creator>
				<category><![CDATA[HTML/CSS/JS]]></category>
		<category><![CDATA[暂未分类]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[setTimeout]]></category>

		<guid isPermaLink="false">http://www.nd21.com/?p=82</guid>
		<description><![CDATA[setTimeout的第一个参数为函数名或者以&#34;&#34;包含的js代码.&#160;如果是第一种情形,&#160;当函数带有参数时,&#160;往往不能达到我们预期需要的效果.&#160;文字说明比较抽象,&#160;我们来看代码: function&#160;test(){ alert(&#8216;A&#8217;); } setTimeout(test,&#160;1000);&#160;//正常,&#160;1秒后执行 b=&#34;Hello&#34;; function&#160;test2(a){ alert(a); } setTimeout(&#34;test2(b)&#34;,&#160;1000);//正常,&#160;1秒后执行 c=&#34;world&#34;; function&#160;test3(a){ alert(a); } setTimeout(test3(c),&#160;1000);&#160;//立刻执行,&#160;并没有延迟 d=&#34;haha&#34;; function&#160;test(d){ return&#160;function() { alert(a); } } setTimeout(test(d),&#160;1000);//正常,&#160;1秒后执行 在prototype.js中也有类似的应用 Function.prototype.bind&#160;=&#160;function(object){ __method&#160;=&#160;this; return&#160;function()&#160;{ __method.apply(object,&#160;arguments); } } function&#160;Test()&#160;{} Test.prototype.start&#160;&#160;=&#160;function(){ setTimeout(this.run.bind(this),&#160;1000); } Test.prototype.run&#160;=&#160;function(){ alert(&#8216;A&#8217;); this.runNext(); } Test.prototype.runNext&#160;=&#160;function(){ setTimeout(this.run.bind(this),&#160;2000); } test&#160;=&#160;new&#160;Test(); test.start(); 这样在客户端就可以循环的向服务器请求信息了(如聊天室).]]></description>
			<content:encoded><![CDATA[<div class="Section0" style="layout-grid:  15.6pt none">
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'">setTimeout<font face="宋体">的第一个参数为函数名或者以</font><font face="Times New Roman">&quot;&quot;</font><font face="宋体">包含的</font><font face="Times New Roman">js</font><font face="宋体">代码</font><font face="Times New Roman">.&nbsp;</font><font face="宋体">如果是第一种情形</font><font face="Times New Roman">,&nbsp;</font><font face="宋体">当函数带有参数时</font><font face="Times New Roman">,&nbsp;</font><font face="宋体">往往不能达到我们预期需要的效果</font><font face="Times New Roman">.&nbsp;</font><font face="宋体">文字说明比较抽象</font><font face="Times New Roman">,&nbsp;</font><font face="宋体">我们来看代码</font><font face="Times New Roman">:<span id="more-82"></span></font></span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">alert</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,92,0); font-size: 10.5pt; mso-spacerun: 'yes'">&#8216;A&#8217;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">setTimeout</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">,</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,64,128); font-size: 10.5pt; mso-spacerun: 'yes'">1000</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,128,0); font-size: 10.5pt; mso-spacerun: 'yes'">//正常,&nbsp;1秒后执行</span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">b</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,92,0); font-size: 10.5pt; mso-spacerun: 'yes'">&quot;Hello&quot;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">;</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test2</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">a</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">alert</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">a</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">setTimeout</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,92,0); font-size: 10.5pt; mso-spacerun: 'yes'">&quot;test2(b)&quot;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">,</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,64,128); font-size: 10.5pt; mso-spacerun: 'yes'">1000</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,128,0); font-size: 10.5pt; mso-spacerun: 'yes'">//正常,&nbsp;1秒后执行</span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">c</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,92,0); font-size: 10.5pt; mso-spacerun: 'yes'">&quot;world&quot;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">;</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test3</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">a</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">alert</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">a</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">setTimeout</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test3</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">c</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">),</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,64,128); font-size: 10.5pt; mso-spacerun: 'yes'">1000</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,128,0); font-size: 10.5pt; mso-spacerun: 'yes'">//立刻执行,&nbsp;并没有延迟</span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">d</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,92,0); font-size: 10.5pt; mso-spacerun: 'yes'">&quot;haha&quot;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">;</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">d</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">return</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">()</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">{</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">alert</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">a</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">setTimeout</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">d</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">),</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,64,128); font-size: 10.5pt; mso-spacerun: 'yes'">1000</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,128,0); font-size: 10.5pt; mso-spacerun: 'yes'">//正常,&nbsp;1秒后执行</span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'">在<font face="Times New Roman">prototype.js</font><font face="宋体">中也有类似的应用</font></span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">Function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">prototype</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">bind</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">object</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">__method</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">this</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">;</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">return</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">()</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">{</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">__method</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">apply</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">object</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">,</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">arguments</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">Test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">()</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">{}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">Test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">prototype</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">start</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">setTimeout</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">this</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">run</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">bind</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">this</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">),</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,64,128); font-size: 10.5pt; mso-spacerun: 'yes'">1000</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">Test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">prototype</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">run</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">alert</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,92,0); font-size: 10.5pt; mso-spacerun: 'yes'">&#8216;A&#8217;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">this</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">runNext</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">();</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">Test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">prototype</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">runNext</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">function</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(){</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">setTimeout</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">this</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">run</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">bind</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">(</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">this</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">),</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,64,128); font-size: 10.5pt; mso-spacerun: 'yes'">2000</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">);</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">}</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">=</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,192); font-size: 10.5pt; font-weight: bold; mso-spacerun: 'yes'">new</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); font-size: 10.5pt; mso-spacerun: 'yes'">&nbsp;</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">Test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">();</span><span style="font-family: 'Courier New'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">test</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">.</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(0,0,0); font-size: 10.5pt; mso-spacerun: 'yes'">start</span><span style="font-family: 'Courier New'; background: rgb(255,255,255); color: rgb(92,92,92); font-size: 10.5pt; mso-spacerun: 'yes'">();</span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'">这样在客户端就可以循环的向服务器请求信息了<font face="Times New Roman">(</font><font face="宋体">如聊天室</font><font face="Times New Roman">).</font></span><span style="font-family: '宋体'; font-size: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
</div>
<p><!--EndFragment--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.qingliangcn.com/2009/06/javascript%e4%b9%8bsettimeout%e4%bd%bf%e7%94%a8%e8%af%a6%e8%a7%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


