﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-yunshichen-随笔分类-Web development</title><link>http://www.cnitblog.com/yunshichen/category/7105.html</link><description>我相信人生是值得活的,尽管人在一生中必须遭受痛苦,卑劣,残酷,不幸和死亡的折磨,我依然深信如此.但我认为人生不一定要有意义,只是对一些人而言,他们可以使人生有意义.  ---J 赫胥黎</description><language>zh-cn</language><lastBuildDate>Mon, 26 Sep 2011 10:47:46 GMT</lastBuildDate><pubDate>Mon, 26 Sep 2011 10:47:46 GMT</pubDate><ttl>60</ttl><item><title>Django 1:安装配置运行1小时谈</title><link>http://www.cnitblog.com/yunshichen/archive/2008/09/12/49040.html</link><dc:creator>Chenyunshi</dc:creator><author>Chenyunshi</author><pubDate>Fri, 12 Sep 2008 08:35:00 GMT</pubDate><guid>http://www.cnitblog.com/yunshichen/archive/2008/09/12/49040.html</guid><wfw:comment>http://www.cnitblog.com/yunshichen/comments/49040.html</wfw:comment><comments>http://www.cnitblog.com/yunshichen/archive/2008/09/12/49040.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yunshichen/comments/commentRss/49040.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yunshichen/services/trackbacks/49040.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Django配置文档最精简版&nbsp;&nbsp;<a href='http://www.cnitblog.com/yunshichen/archive/2008/09/12/49040.html'>阅读全文</a><img src ="http://www.cnitblog.com/yunshichen/aggbug/49040.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yunshichen/" target="_blank">Chenyunshi</a> 2008-09-12 16:35 <a href="http://www.cnitblog.com/yunshichen/archive/2008/09/12/49040.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>YUI ：一个autocomplete 组件的例子</title><link>http://www.cnitblog.com/yunshichen/archive/2008/09/12/49036.html</link><dc:creator>Chenyunshi</dc:creator><author>Chenyunshi</author><pubDate>Fri, 12 Sep 2008 07:42:00 GMT</pubDate><guid>http://www.cnitblog.com/yunshichen/archive/2008/09/12/49036.html</guid><wfw:comment>http://www.cnitblog.com/yunshichen/comments/49036.html</wfw:comment><comments>http://www.cnitblog.com/yunshichen/archive/2008/09/12/49036.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yunshichen/comments/commentRss/49036.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yunshichen/services/trackbacks/49036.html</trackback:ping><description><![CDATA[
		<br />
		<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">
				<!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>-->
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">html</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 128, 0);">&lt;!--</span>
				<span style="color: rgb(0, 128, 0);">CSS file (default YUI Sam Skin) </span>
				<span style="color: rgb(0, 128, 0);">--&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">link </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/css"</span>
				<span style="color: rgb(255, 0, 0);"> rel</span>
				<span style="color: rgb(0, 0, 255);">="stylesheet"</span>
				<span style="color: rgb(255, 0, 0);"> href</span>
				<span style="color: rgb(0, 0, 255);">="http://yui.yahooapis.com/2.5.2/build/autocomplete/assets/skins/sam/autocomplete-skin.css"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<br />
				</span>
				<span style="color: rgb(0, 128, 0);">&lt;!--</span>
				<span style="color: rgb(0, 128, 0);"> Dependencies </span>
				<span style="color: rgb(0, 128, 0);">--&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">script </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/javascript"</span>
				<span style="color: rgb(255, 0, 0);"> src</span>
				<span style="color: rgb(0, 0, 255);">="http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js"</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;/</span>
				<span style="color: rgb(128, 0, 0);">script</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<br />
				</span>
				<span style="color: rgb(0, 128, 0);">&lt;!--</span>
				<span style="color: rgb(0, 128, 0);"> OPTIONAL: Connection (required only if using XHR DataSource) </span>
				<span style="color: rgb(0, 128, 0);">--&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">script </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/javascript"</span>
				<span style="color: rgb(255, 0, 0);"> src</span>
				<span style="color: rgb(0, 0, 255);">="http://yui.yahooapis.com/2.5.2/build/connection/connection-debug.js"</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;/</span>
				<span style="color: rgb(128, 0, 0);">script</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<br />
				</span>
				<span style="color: rgb(0, 128, 0);">&lt;!--</span>
				<span style="color: rgb(0, 128, 0);"> OPTIONAL: JSON (enables JSON validation) </span>
				<span style="color: rgb(0, 128, 0);">--&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">script </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/javascript"</span>
				<span style="color: rgb(255, 0, 0);"> src</span>
				<span style="color: rgb(0, 0, 255);">="http://yui.yahooapis.com/2.5.2/build/json/json-debug.js"</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;/</span>
				<span style="color: rgb(128, 0, 0);">script</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 128, 0);">&lt;!--</span>
				<span style="color: rgb(0, 128, 0);"> Source file </span>
				<span style="color: rgb(0, 128, 0);">--&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">script </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/javascript"</span>
				<span style="color: rgb(255, 0, 0);"> src</span>
				<span style="color: rgb(0, 0, 255);">="http://yui.yahooapis.com/2.5.2/build/autocomplete/autocomplete-debug.js"</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;/</span>
				<span style="color: rgb(128, 0, 0);">script</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<br />
				</span>
				<span style="color: rgb(0, 128, 0);">&lt;!--</span>
				<span style="color: rgb(0, 128, 0);">================== Logger ==================== </span>
				<span style="color: rgb(0, 128, 0);">--&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">link </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/css"</span>
				<span style="color: rgb(255, 0, 0);"> rel</span>
				<span style="color: rgb(0, 0, 255);">="stylesheet"</span>
				<span style="color: rgb(255, 0, 0);"> href</span>
				<span style="color: rgb(0, 0, 255);">="http://yui.yahooapis.com/2.5.2/build/logger/assets/skins/sam/logger.css"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">script </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/javascript"</span>
				<span style="color: rgb(255, 0, 0);"> src</span>
				<span style="color: rgb(0, 0, 255);">="http://yui.yahooapis.com/2.5.2/build/logger/logger-debug.js"</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;/</span>
				<span style="color: rgb(128, 0, 0);">script</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">style </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/css"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">
						<br />#myAutoComplete </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">{</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(255, 0, 0);">
						<br />    width</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">:</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">15em</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(255, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">/*</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"> set width here </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">*/</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(255, 0, 0);">
						<br />    padding-bottom</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">:</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">2em</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(255, 0, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">}</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">style</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">body </span>
				<span style="color: rgb(255, 0, 0);">class</span>
				<span style="color: rgb(0, 0, 255);">=" yui-skin-sam"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">div </span>
				<span style="color: rgb(255, 0, 0);">id</span>
				<span style="color: rgb(0, 0, 255);">="myLogger"</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;/</span>
				<span style="color: rgb(128, 0, 0);">div</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;</span>
				<span style="color: rgb(128, 0, 0);">br</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">hr</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />Change datasource :<br /></span>
				<span style="color: rgb(255, 0, 0);">&amp;nbsp;&amp;nbsp;&amp;nbsp;</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">input </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="button"</span>
				<span style="color: rgb(255, 0, 0);"> id</span>
				<span style="color: rgb(0, 0, 255);">="jsBtn"</span>
				<span style="color: rgb(255, 0, 0);"> value</span>
				<span style="color: rgb(0, 0, 255);">="JS array"</span>
				<span style="color: rgb(255, 0, 0);"> </span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(255, 0, 0);">&amp;nbsp;&amp;nbsp;&amp;nbsp;</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">input </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="button"</span>
				<span style="color: rgb(255, 0, 0);"> id</span>
				<span style="color: rgb(0, 0, 255);">="funcBtn"</span>
				<span style="color: rgb(255, 0, 0);"> value</span>
				<span style="color: rgb(0, 0, 255);">="JS function"</span>
				<span style="color: rgb(255, 0, 0);"> </span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">br</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;</span>
				<span style="color: rgb(128, 0, 0);">br</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">div </span>
				<span style="color: rgb(255, 0, 0);">id</span>
				<span style="color: rgb(0, 0, 255);">="myAutoComplete"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">input </span>
				<span style="color: rgb(255, 0, 0);">id</span>
				<span style="color: rgb(0, 0, 255);">="myInput"</span>
				<span style="color: rgb(255, 0, 0);"> type</span>
				<span style="color: rgb(0, 0, 255);">="text"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">div </span>
				<span style="color: rgb(255, 0, 0);">id</span>
				<span style="color: rgb(0, 0, 255);">="myContainer"</span>
				<span style="color: rgb(0, 0, 255);">&gt;&lt;/</span>
				<span style="color: rgb(128, 0, 0);">div</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">div</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">script </span>
				<span style="color: rgb(255, 0, 0);">type</span>
				<span style="color: rgb(0, 0, 255);">="text/javascript"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">
						<br />
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">A JS array data source</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> testData</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">[</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">fa</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">fb</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">fc</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">];<br /></span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"> A JavaScript Function DataSource</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> myFunction(sQuery) {<br />    aResults </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> [];<br />    </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">if</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (sQuery </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&amp;&amp;</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> sQuery.length </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&gt;</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">) {<br />        </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> charKey </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> sQuery.substring(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">1</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">).toLowerCase();<br />        </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> oResponse </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> dataset[charKey];<br />        </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">if</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (oResponse) {<br />            </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">for</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> i </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> oResponse.length </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">-</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">1</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">; i </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&gt;=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">; i</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">--</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">) {<br />                </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> sKey </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> oResponse[i].STATE;<br />                </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> sKeyIndex </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> encodeURI(sKey.toLowerCase()).indexOf(sQuery.toLowerCase());<br />                </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">if</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (sKeyIndex </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">===</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">) {<br />                    aResults.unshift([sKey, oResponse[i].ABBR]);<br />                }<br />            }<br />            </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">return</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> aResults;<br />        }<br />    } </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">else</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> {<br />        </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">for</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> letter </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">in</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> dataset) {<br />            </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> oResponse </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> dataset[letter];<br />            </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">for</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> i </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">; i </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&lt;</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> oResponse.length; i</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">++</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">) {<br />                aResults.push([oResponse[i].STATE, oResponse[i].ABBR]);<br />            }<br />        }<br />        </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">return</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> aResults;<br />    }<br />}<br /><br /></span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> dataset </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> {<br />    'a' : [{</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">STATE</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Alabama</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">ABBR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">AL</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">},<br />        {</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">STATE</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Alaska</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">ABBR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">AK</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">},<br />        {</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">STATE</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Arizona</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">ABBR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">AZ</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">},<br />        {</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">STATE</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Arkansas</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">ABBR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">AR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">}],<br />    'b' : [ ],<br />    'c' : [{</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">STATE</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">California</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">ABBR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">CA</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">},<br />        {</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">STATE</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Colorado</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">ABBR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">CO</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">},<br />        {</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">STATE</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Connecticut</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">ABBR</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> : </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">CT</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">}],<br />     </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"> Entire dataset not shown</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">};<br /><br /><br /></span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Init autocomplete component.</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> g_oAuto</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(){    <br />    </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">============ init logger</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.logger </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> YAHOO.widget.LogReader(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">myLogger</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">); <br />    </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.myDatasource </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> YAHOO.widget.DS_JSFunction(myFunction);<br />    </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.myAutoComp</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> YAHOO.widget.AutoComplete(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">myInput</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">myContainer</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.myDatasource);<br />};<br /><br /></span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Util functions.</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> changeDSToJsArray(){    <br />    g_oAuto.myAutoComp.dataSource</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> YAHOO.widget.DS_JSArray(testData);<br />    YAHOO.log(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Changed data source to JS array</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">info</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.toString());<br />};<br /></span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> changeDSToJsFunction(){<br />    g_oAuto.myAutoComp.dataSource</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> YAHOO.widget.DS_JSFunction(myFunction);<br />    </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Customize result view.</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    g_oAuto.myAutoComp.formatResult </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(oResultItem, sQuery) {<br />        </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> sMarkup </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> oResultItem[</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">] </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> oResultItem[</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">1</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">] </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">)</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;<br />        </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">return</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (sMarkup);<br />    };<br /><br />    YAHOO.log(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Changed data source to JS function</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">info</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.toString());<br />};<br /><br /></span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Set button event handlers.</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> btn </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> YAHOO.util.Dom.get(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">jsBtn</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />btn.onclick</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">changeDSToJsArray;<br /><br />btn </span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> YAHOO.util.Dom.get(</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">funcBtn</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />btn.onclick</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span>
				<span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">changeDSToJsFunction;<br /><br /><br /></span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">script</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">body</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">html</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
		</div>
		<br />
<img src ="http://www.cnitblog.com/yunshichen/aggbug/49036.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yunshichen/" target="_blank">Chenyunshi</a> 2008-09-12 15:42 <a href="http://www.cnitblog.com/yunshichen/archive/2008/09/12/49036.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>简明Javascript教程</title><link>http://www.cnitblog.com/yunshichen/archive/2008/09/07/48807.html</link><dc:creator>Chenyunshi</dc:creator><author>Chenyunshi</author><pubDate>Sun, 07 Sep 2008 05:20:00 GMT</pubDate><guid>http://www.cnitblog.com/yunshichen/archive/2008/09/07/48807.html</guid><wfw:comment>http://www.cnitblog.com/yunshichen/comments/48807.html</wfw:comment><comments>http://www.cnitblog.com/yunshichen/archive/2008/09/07/48807.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yunshichen/comments/commentRss/48807.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yunshichen/services/trackbacks/48807.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: chapter1 javascript基础		1.1 变量类型和声明    javascript里常用基本类型有:boolean,string 和number,常用的类分别是:Boolean,String和Number,Array,Object.声明变量用var,不能用关键字和保留字作变量名(关键字和保留字见附录A1).命名的最佳实践是使用匈牙利命名法.        基本类型的变...&nbsp;&nbsp;<a href='http://www.cnitblog.com/yunshichen/archive/2008/09/07/48807.html'>阅读全文</a><img src ="http://www.cnitblog.com/yunshichen/aggbug/48807.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yunshichen/" target="_blank">Chenyunshi</a> 2008-09-07 13:20 <a href="http://www.cnitblog.com/yunshichen/archive/2008/09/07/48807.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript杂谈二：OO ？</title><link>http://www.cnitblog.com/yunshichen/archive/2008/08/22/javascript-oo.html</link><dc:creator>Chenyunshi</dc:creator><author>Chenyunshi</author><pubDate>Fri, 22 Aug 2008 09:35:00 GMT</pubDate><guid>http://www.cnitblog.com/yunshichen/archive/2008/08/22/javascript-oo.html</guid><wfw:comment>http://www.cnitblog.com/yunshichen/comments/48261.html</wfw:comment><comments>http://www.cnitblog.com/yunshichen/archive/2008/08/22/javascript-oo.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/yunshichen/comments/commentRss/48261.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yunshichen/services/trackbacks/48261.html</trackback:ping><description><![CDATA[
		<br />    OO的三个概念是封装，继承和多态。<br /><br />    强类型语言如C++或Java用private,protected和public三个关键字表征成员函数的作用域。js缺少这样的关键字，根据Douglas 的说法，js的方法有：<br /><br />    private : 只能在类实例中访问的方法。<br />    privileged: 公开的能够访问类实例的私有变量，你可以替换或者删除privileged方法，但不能修改<br />    public : 公开方法，只能访问公开属性变量，不能访问类实例的私有变量。<br /><br />    代码如下：<br /><br />  <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> Employee</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(sname,iage){<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">private properties.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> m_name</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">sname;<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> m_title;<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">public properties.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.age</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">iage;<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">private methods.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> sayHello(){<br />            alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Hello,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">m_name);<br />        };<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">privileged methods.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.getName</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(){<br />            </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">return</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> m_name;<br />        };<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.setName</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(sname){<br />            m_name</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">sname;<br />        };        <br />        <br />    };<br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">public methods.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    Employee.prototype.getAge</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(){<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">return</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.age;<br />    };<br />    <br />    emp1 </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> Employee(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">test1</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">28</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />    alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.name:</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.getName());<br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Reset private properties.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    emp1.setName(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">test 2</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />    alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.name:</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.getName());<br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Replace privileged methods.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    emp1.setName</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(sname,stitle){<br />        m_name</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">sname;<br />        m_title</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">stitle;<br />    };<br />    emp1.getName</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(){<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">return</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> m_name</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">::</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">m_title;<br />    };<br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Invoke replaced privileged methods.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    emp1.setName(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Chen</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">Engineer</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />    alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.name:</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.getName());<br />    <br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">Invoke public methods.</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.age</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.getAge());<br />    alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.age</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">emp1.age);<br />    <br />    <br />    <br />    <br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br />  你很快会发觉，所谓的public方法根本不能访问私有变量，这令它的价值大打折扣。而出于数据封装的目的，使用public的变量似乎也颇为不妥。<br /><br />  为了达到”将相关信息封装到类“的目的，有两种变通办法，第一种，只采用private变量和privileged方法：<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> Employee</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(sname,iage){<br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">private properties.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> m_name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">sname;<br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">privileged methods.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.getName</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(){<br />            </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> m_name;<br />        };<br />        </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.setName</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(sname){<br />            m_name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">sname;<br />        };        <br />        <br />    };<br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">public methods.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">    Employee.prototype.getAge</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(){<br />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.age;<br />    };<br />    <br />    emp1 </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> Employee(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">test1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">28</span><span style="color: rgb(0, 0, 0);">);<br />    alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">emp1.name:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">emp1.getName());</span></div><br />  这种做法似乎很好，除了会带来性能的问题。因为每个实例自身都会创建两个方法。<br /><br />  另一种做法以实用主义为宗旨。不是所有的私有属性都需要get/set方法的，这增加了代码编写者的额外负担。只需在设计类的时候约定哪些属性是私有的，类的使用者不应该直接去访问。约定的私有属性以__或者_打头。<br /><br />  例如上面的版本可以重写为：<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> Employee</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(sname,iage){<br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">Actually all are public properties,but you shouldn't directly access _age.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">sname;<br />        </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._age</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">iage;        <br />    };<br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">public methods.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">    Employee.prototype.getName</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(){<br />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.name;<br />    };<br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">public methods.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">    Employee.prototype.getAge</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(){<br />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._age;<br />    };<br />    <br />    emp1 </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> Employee(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">test1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">28</span><span style="color: rgb(0, 0, 0);">);<br />    alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">emp1.name:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">emp1.name);<br />    alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">emp1.age:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">emp1.getAge());<br />    alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">emp1._age:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">emp1._age);</span></div><br /><br />  正如你在代码中看到的，用_给变量命名并没有改变它的public性质，仅仅是一种约定而已。本例中的约定表示：你可以直接访问emp1.name，但你不应该直接访问emp1._age，该变量是私有变量。<br /><br />  在YUI中采用了第二种做法，以实用为先。但是对Douglas来说，这似乎是个讽刺。他说js是世上最被误解的语言，他说js有完整的oo能力，但似乎，从他领导的YUI看不出这一点。<br /><br /><br /><br /><br /><img src ="http://www.cnitblog.com/yunshichen/aggbug/48261.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yunshichen/" target="_blank">Chenyunshi</a> 2008-08-22 17:35 <a href="http://www.cnitblog.com/yunshichen/archive/2008/08/22/javascript-oo.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Javascript 杂谈一：全局作用域和闭包</title><link>http://www.cnitblog.com/yunshichen/archive/2008/08/21/javascript.html</link><dc:creator>Chenyunshi</dc:creator><author>Chenyunshi</author><pubDate>Thu, 21 Aug 2008 14:16:00 GMT</pubDate><guid>http://www.cnitblog.com/yunshichen/archive/2008/08/21/javascript.html</guid><wfw:comment>http://www.cnitblog.com/yunshichen/comments/48220.html</wfw:comment><comments>http://www.cnitblog.com/yunshichen/archive/2008/08/21/javascript.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnitblog.com/yunshichen/comments/commentRss/48220.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yunshichen/services/trackbacks/48220.html</trackback:ping><description><![CDATA[    在网上看到一篇很好的文章，就是就写了这篇翻译&amp;杂谈。<br /><br />    在编程时你需要取得某些变量或者方法时才能继续你的开发工作，而程序编译器通常会将这些方法封装到一个个作用域。当你进入作用域，你才能取得该作用域的变量或方法。所以在某种意义上说，作用域（scope)非常重要。<br /><br />    在js中，所有的变量/方法都是对象，这当然也包括作用域。最全局的作用域就是window。以下这个小程序可以让你很清楚的看到这点：<br /> <br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> a</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">test a</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;<br />window.b</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">test b</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;<br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> c(){<br />    alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">test c</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />}<br />alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">a is:</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">window.a);<br />alert(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">b is:</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">window.b);<br />window.c();<br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br />    js存在名为作用域链的东东（scope chain) ,假设scopeA定义在scopeB中，scopeB定义在window中，那么当你访问某个变量a的时候，js现在当前作用域寻找，如果没有找到就到上层作用域寻找，周而复始，最后在window进行查找，如果再查找不到，就抛出异常.<br /><br />    多数程序语言对于作用域和变量的实现都是这样子的。似乎不用特别考究。<br /><br />    奇特的是在js内，函数内部还可以嵌套函数，所以你一定要对上述作用域的概念了然于胸。例如下面的例子：<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> A </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(){<br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> a </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">test a</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;<br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> change(){<br />        alert(a);<br />        a</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">value changed</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;<br />    };<br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">this</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">.visible</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(){<br />        alert(a);<br />    }<br />}<br /><br />A.visible();<br />A.change();<br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br />    你可以看到，visible方法可以访问而change则不能。于是这种方式就模拟了某些“OO”语言如Java，C++的OO功能：数据封装。并且，上述代码是js中创建singleton对象的方式。<br /><br />    在上述代码中，change称为闭包（closure)，因为它能够访问位于本作用域外的属性或方法。然而，恕我直言，这种函数能访问外层作用域的变量或函数的方式在C++或者Java中不是很平常的事情？为什么会有个专门的名词呢？我暂时没有弄清楚，或者以后会认真读读js规范：<a href="http://www.ecma-international.org/publications/files/ecma-st/ECMA-262.pdf">Javascript's specification</a><br />   <br />    很好的一篇文章：<a temp_href="Getting Funky With Scopes and Closures" href="Getting%20Funky%20With%20Scopes%20and%20Closures">Getting Funky With Scopes and Closures</a><br /><br />    当然还有<a href="http://www.crockford.com/javascript/">Douglas Crockford 的主页</a><br />  <br /><br />  <br /><br /><br /><img src ="http://www.cnitblog.com/yunshichen/aggbug/48220.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yunshichen/" target="_blank">Chenyunshi</a> 2008-08-21 22:16 <a href="http://www.cnitblog.com/yunshichen/archive/2008/08/21/javascript.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Spring 2.5 &amp; Dwr 2.0 配置文档</title><link>http://www.cnitblog.com/yunshichen/archive/2008/07/21/46961.html</link><dc:creator>Chenyunshi</dc:creator><author>Chenyunshi</author><pubDate>Mon, 21 Jul 2008 02:40:00 GMT</pubDate><guid>http://www.cnitblog.com/yunshichen/archive/2008/07/21/46961.html</guid><wfw:comment>http://www.cnitblog.com/yunshichen/comments/46961.html</wfw:comment><comments>http://www.cnitblog.com/yunshichen/archive/2008/07/21/46961.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yunshichen/comments/commentRss/46961.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yunshichen/services/trackbacks/46961.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Dwr2 集成 Spring2 配置文件&nbsp;&nbsp;<a href='http://www.cnitblog.com/yunshichen/archive/2008/07/21/46961.html'>阅读全文</a><img src ="http://www.cnitblog.com/yunshichen/aggbug/46961.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yunshichen/" target="_blank">Chenyunshi</a> 2008-07-21 10:40 <a href="http://www.cnitblog.com/yunshichen/archive/2008/07/21/46961.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>