<?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>达达&#039;s Blog &#187; 软件工程</title>
	<atom:link href="http://www.isdada.com/category/appdev/softpro/feed" rel="self" type="application/rss+xml" />
	<link>http://www.isdada.com</link>
	<description></description>
	<lastBuildDate>Fri, 11 Nov 2011 08:07:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>推荐一本好书《大话设计模式》</title>
		<link>http://www.isdada.com/good-book-lying-design-patterns.html</link>
		<comments>http://www.isdada.com/good-book-lying-design-patterns.html#comments</comments>
		<pubDate>Thu, 03 Jul 2008 08:46:39 +0000</pubDate>
		<dc:creator>达达</dc:creator>
				<category><![CDATA[软件工程]]></category>
		<category><![CDATA[酷东东]]></category>
		<category><![CDATA[设计模式]]></category>

		<guid isPermaLink="false">http://www.asflex.cn/?p=259</guid>
		<description><![CDATA[这的确是一本好书，把非常抽象的设计模式讲得形象具体。 可以让人比较容易理解常用的23种设计模式。 本书基于c#，但是只要具有java，as3等语言的基础知识者皆可比较顺利地阅读。 虽然网上已经有电子书了了（Tip：51leifeng.net上有完整版的） 当然，如果要更深入地理解设计模式还是请阅读《设计模式：可复用面向对象软件的基础》、《Java与设计模式》之类的书吧。]]></description>
			<content:encoded><![CDATA[<p>这的确是一本好书，把非常抽象的设计模式讲得形象具体。</p>
<p>可以让人比较容易理解常用的23种设计模式。</p>
<p>本书基于c#，但是只要具有java，as3等语言的基础知识者皆可比较顺利地阅读。</p>
<p>虽然网上已经有电子书了了（Tip：51leifeng.net上有完整版的）</p>
<p>当然，如果要更深入地理解设计模式还是请阅读《设计模式：可复用面向对象软件的基础》、《Java与设计模式》之类的书吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.isdada.com/good-book-lying-design-patterns.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>开发注释规范</title>
		<link>http://www.isdada.com/comment-specification.html</link>
		<comments>http://www.isdada.com/comment-specification.html#comments</comments>
		<pubDate>Tue, 22 Apr 2008 03:33:38 +0000</pubDate>
		<dc:creator>达达</dc:creator>
				<category><![CDATA[软件工程]]></category>

		<guid isPermaLink="false">http://www.asflex.cn/?p=49</guid>
		<description><![CDATA[转载的。 要好好地开始注意起开发流程规范化！ From：http://blog.csdn.net/l0979365428/archive/2007/10/22/1836477.aspx      为什么要有注释 企业级软件生命周期的80%用于维护，对代码的可读性和可维护性要求非常高，性能反而被放到其次；我们在编写程序的时候必须重视代码质量。   软件开发是一种高级脑力劳动，精妙的算法之后往往伴随着难以理解的代码，对于不经常维护的代码，往往连开发者本人也忘记编写的初衷。   SScompany的软件开发基于螺旋式软件开发模型，我们的Test系统在开发过程中不断因为不同客户的不同需求而做出相应的调整，不同项目组间同一功能模块的代码差异较大，即使同一项目组在不同时间段的代码也有可能完全不同，因此在开发更改过程中，需要编写注释来记录我们所做的每一件事情，以便以后的维护者可以更容易的了解代码编写的原因，过程。   诗言志，代码看人。要知道一个程序员的职业素养不用看薪金、资历、职位，只要去看他的代码便可知道，优雅的代码风格背后是高超技巧与丰富阅历的结合。好的代码使人钦佩，坏的代码使人鄙视；好的代码使人仰慕，坏的代码使人厌恶。出于经验和阅历的欠缺，我们可能无法写出大师级的优雅代码，但我们可以像大师们一样对代码详细注释。   注释概述 对大道的追求是人类不灭的理想，任何理论最终都是在解释这样的问题：我是谁？我从哪里来？我要到哪里去？ 同样，编写注释的目的有三： 描述程序的目的、解释程序的功能、提示程序的细节。   描述程序目的的部分要做到“详”、“尽”即又多又全，因为代码阅读者大部分时间是用来理解这段程序是怎么来地，（然后再了解这段程序是怎么没地）。根本目的在于告诉阅读者为什么会有着段程序这部分注释通常放在文件开头。   解释程序功能的部分要做到“精”、“准”即没有废话，一眼就能知道程序是做什么的，代码阅读者根据这些注释知道应该对程序作什么样的调整。这部分注释通常用来放在方法开头。   提示程序细节的部分需要编写者随机应变灵活控制，根据程序细节的不同或多或少或细或粗。其最终目的是让阅读者知道为什么程序要写成这样，这部分注释可能出现在代码的任何位置。   以下是一些通用注释规则:   1、除非必要，不允许修改任何描述性注释；除非确实对方法做出过修改，不允许修改任何解释性注释；根据实际修改情况修改提示性注释。   2、如果在其他项目组发现他们的注释规范与这份文档不同，按照他们的规范写代码，不要试图在既成的规范系统中引入新的规范。   3、描述性注释先于代码创建，解释性注释在开发过程中创建，提示性注释在代码完成之后创建。   4、除HTML和不重要的Javascript外任何对文件（类）的注释必须加上SScompany版权所有标志，此举对我们Test系统的版权非常重要。 /**  *Copyright(c)2007SScompany Co.Ltd.  *Allrightreserved.  */ 5、每行注释（连同代码）不要超过120个字(1024×768)，最好不要超过80字(800×600) 。   6、任何注释必须遵循中文语法(英文注释必须遵循英文语法)，不能有错别字，正确使用标点符号。   7、当一段代码被更改，相应的注释也应改被更改。   下面将说明java，JSP，javascript的注释应如何编写   Java 程序注释编写 Java 编程语言有三种注释： /**  *java风格的注释，可以生成javadoc  *  */   <a href='http://www.isdada.com/comment-specification.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>转载的。</p>
<p>要好好地开始注意起开发流程规范化！</p>
<p>From：<span class="Apple-style-span" style="word-spacing: 0px; text-transform: none; color: #000000; text-indent: 0px; font-family: 'Lucida Grande'; white-space: pre; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0;"><a href="http://blog.csdn.net/l0979365428/archive/2007/10/22/1836477.aspx">http://blog.csdn.net/l0979365428/archive/2007/10/22/1836477.aspx</a></span></p>
<p><span class="Apple-style-span" style="word-spacing: 0px; text-transform: none; color: #000000; text-indent: 0px; font-family: Verdana; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0;"><span class="Apple-style-span" style="word-spacing: 0px; text-transform: none; color: #000000; text-indent: 0px; font-family: Verdana; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0;"> </span></span> <span id="more-49"></span></p>
<blockquote>
<div> </div>
<div><span class="Apple-style-span" style="word-spacing: 0px; text-transform: none; color: #000000; text-indent: 0px; font-family: Verdana; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0;"><span class="Apple-style-span" style="word-spacing: 0px; font: bold 24px Verdana; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0;"><a name="_Toc180580236"><span style="font-size: 12pt; line-height: 173%;">为什么要有注释</span></a></span></span></div>
<div style="text-indent: 21pt;">企业级软件生命周期的80%用于维护，对代码的可读性和可维护性要求非常高，性能反而被放到其次；我们在编写程序的时候必须重视代码质量。</div>
<div style="text-indent: 21pt;"> </div>
<div style="text-indent: 21pt;">软件开发是一种高级脑力劳动，精妙的算法之后往往伴随着难以理解的代码，对于不经常维护的代码，往往连开发者本人也忘记编写的初衷。</div>
<div> </div>
<div style="text-indent: 21pt;">SScompany的软件开发基于螺旋式软件开发模型，我们的Test系统在开发过程中不断因为不同客户的不同需求而做出相应的调整，不同项目组间同一功能模块的代码差异较大，即使同一项目组在不同时间段的代码也有可能完全不同，因此在开发更改过程中，需要编写注释来记录我们所做的每一件事情，以便以后的维护者可以更容易的了解代码编写的原因，过程。</div>
<div> </div>
<div style="text-indent: 21pt;">诗言志，代码看人。要知道一个程序员的职业素养不用看薪金、资历、职位，只要去看他的代码便可知道，优雅的代码风格背后是高超技巧与丰富阅历的结合。好的代码使人钦佩，坏的代码使人鄙视；好的代码使人仰慕，坏的代码使人厌恶。出于经验和阅历的欠缺，我们可能无法写出大师级的优雅代码，但我们可以像大师们一样对代码详细注释。</div>
<div> </div>
<div><strong><span style="font-size: large;"><a name="_Toc180580237"><span style="font-size: 12pt; line-height: 173%;">注释</span></a><span style="font-size: 12pt; line-height: 173%;">概述</span></span></strong></div>
<div style="text-indent: 21pt;">对大道的追求是人类不灭的理想，任何理论最终都是在解释这样的问题：我是谁？我从哪里来？我要到哪里去？ 同样，编写注释的目的有三： 描述程序的目的、解释程序的功能、提示程序的细节。</div>
<div> </div>
<div style="text-indent: 21pt;">描述程序目的的部分要做到“详”、“尽”即又多又全，因为代码阅读者大部分时间是用来理解这段程序是怎么来地，（然后再了解这段程序是怎么没地）。根本目的在于告诉阅读者为什么会有着段程序这部分注释通常放在文件开头。</div>
<div> </div>
<div style="text-indent: 21pt;">解释程序功能的部分要做到“精”、“准”即没有废话，一眼就能知道程序是做什么的，代码阅读者根据这些注释知道应该对程序作什么样的调整。这部分注释通常用来放在方法开头。</div>
<div> </div>
<div style="text-indent: 21pt;">提示程序细节的部分需要编写者随机应变灵活控制，根据程序细节的不同或多或少或细或粗。其最终目的是让阅读者知道为什么程序要写成这样，这部分注释可能出现在代码的任何位置。</div>
<div> </div>
<div>以下是一些通用注释规则:</div>
<div> </div>
<div>1、除非必要，不允许修改任何描述性注释；除非确实对方法做出过修改，不允许修改任何解释性注释；根据实际修改情况修改提示性注释。</div>
<div> </div>
<div>2、如果在其他项目组发现他们的注释规范与这份文档不同，按照他们的规范写代码，不要试图在既成的规范系统中引入新的规范。</div>
<div> </div>
<div>3、描述性注释先于代码创建，解释性注释在开发过程中创建，提示性注释在代码完成之后创建。</div>
<div> </div>
<div>4、除HTML和不重要的Javascript外任何对文件（类）的注释必须加上SScompany版权所有标志，此举对我们Test系统的版权非常重要。</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/**</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #3f5fbf;">Copyright</span><span style="font-size: 9pt; color: #3f5fbf;">(c)</span><span style="font-size: 9pt; color: #3f5fbf;">2007</span><span style="font-size: 9pt; color: #3f5fbf;">SScompany</span><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">Co.</span><span style="font-size: 9pt; color: #3f5fbf;">Ltd.</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #3f5fbf;">All</span><span style="font-size: 9pt; color: #3f5fbf;">right</span><span style="font-size: 9pt; color: #3f5fbf;">reserved.</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*/</span></div>
<div>5、每行注释（连同代码）不要超过120个字(1024×768)，最好不要超过80字(800×<span>600</span>) 。</div>
<div> </div>
<div>6、任何注释必须遵循中文语法(英文注释必须遵循英文语法)，不能有错别字，正确使用标点符号。</div>
<div> </div>
<div>7、当一段代码被更改，相应的注释也应改被更改。</div>
<div> </div>
<div>下面将说明java，JSP，javascript的注释应如何编写</div>
<div> </div>
<div><strong><span style="font-size: large;"><a name="_Toc180580238"><span><span style="font-size: 12pt; line-height: 173%;">Java<span class="Apple-converted-space"> </span></span></span></a><span><span><span style="font-size: 12pt; line-height: 173%;">程序注释编写</span></span></span></span></strong></div>
<div>Java 编程语言有三种注释：</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/**</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #3f5fbf;">java</span><span style="font-size: 9pt; color: #3f5fbf;">风格的注释，可以生成</span><span style="font-size: 9pt; color: #3f5fbf;">javadoc</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*/</span></div>
<div> </div>
<div><span style="font-size: 9pt; color: #3f7f5f;">/*</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;"> * C</span><span style="font-size: 9pt; color: #3f7f5f;">风格的注释</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;"> */</span></div>
<div> </div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// C++</span><span style="font-size: 9pt; color: #3f7f5f;">风格的注释</span></div>
<div> </div>
<div>对于java风格和c风格的注释都必须保证‘*’对齐，注释写在‘*’加一个空格符之后。</div>
<div>C++风格的注释通常用于提示性注释，注释写在第二个‘/’加一个空格符之后。</div>
<div>关于JavaDoc的部分略去不表，我们直接谈谈我们SScompany的程序注释。</div>
<div> </div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580239"><span><span style="font-size: 10.5pt; line-height: 173%;">版权信息</span></span></a></span></strong></div>
<div>放在包信息之前：</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/**</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #3f5fbf;">Copyright</span><span style="font-size: 9pt; color: #3f5fbf;">(c)</span><span style="font-size: 9pt; color: #3f5fbf;">2002</span><span style="font-size: 9pt; color: #3f5fbf;">SScompany</span><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">Co.</span><span style="font-size: 9pt; color: #3f5fbf;">Ltd.</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #3f5fbf;">All</span><span style="font-size: 9pt; color: #3f5fbf;">right</span><span style="font-size: 9pt; color: #3f5fbf;">reserved.</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*/</span></div>
<div> </div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580240"><span><span style="font-size: 10.5pt; line-height: 173%;">类信息</span></span></a></span></strong></div>
<div>放在类名之前：</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/**</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;p&gt;</span><span style="font-size: 9pt; color: #3f5fbf;">Title:</span><span style="font-size: 9pt; color: #3f5fbf;">描述这个类属于哪一系统哪一模块</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;p&gt;</span><span style="font-size: 9pt; color: #3f5fbf;">Description:<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">描述该类实现了什么功能，尽可能详尽</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;p&gt;</span><span style="font-size: 9pt; color: #3f5fbf;">Copyright:</span><span style="font-size: 9pt; color: #3f5fbf;">Copyright</span><span style="font-size: 9pt; color: #3f5fbf;">(c)</span><span style="font-size: 9pt; color: #3f5fbf;">2007</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;p&gt;</span><span style="font-size: 9pt; color: #3f5fbf;">Company:</span><span style="font-size: 9pt; color: #3f5fbf;">SScompany</span><span style="font-size: 9pt; color: #7f7f9f;">&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><strong><span style="font-size: 9pt; color: #7f9fbf;">@author</span></strong><span style="font-size: 9pt; color: #3f5fbf;">你的大名</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><strong><span style="font-size: 9pt; color: #7f9fbf;">@version</span></strong><span style="font-size: 9pt; color: #3f5fbf;">目前项目的版本号，默认为</span><span style="font-size: 9pt; color: #3f5fbf;">1.0</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*/</span></div>
<div>类信息的@version 信息由项目组决定，不过很少有项目组更改version信息。</div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580241"><span><span style="font-size: 10.5pt; line-height: 173%;">方法信息</span></span></a></span></strong></div>
<div>放在方法之前：</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/**</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #3f5fbf;">对方法功能的描述</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><strong><span style="font-size: 9pt; color: #7f9fbf;">@param</span></strong><span style="font-size: 9pt; color: #3f5fbf;">参数</span><span style="font-size: 9pt; color: #3f5fbf;">1</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><strong><span style="font-size: 9pt; color: #7f9fbf;">@param</span></strong><span style="font-size: 9pt; color: #3f5fbf;">参数</span><span style="font-size: 9pt; color: #3f5fbf;">2</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><strong><span style="font-size: 9pt; color: #7f9fbf;">@return<span class="Apple-converted-space"> </span></span></strong><span style="font-size: 9pt; color: #3f5fbf;">返回类型</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><strong><span style="font-size: 9pt; color: #7f9fbf;">@throws</span></strong><span style="font-size: 9pt; color: #3f5fbf;">这个方法所抛出的异常</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*/</span></div>
<div> </div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580242"><span><span style="font-size: 10.5pt; line-height: 173%;">代码块信息</span></span></a></span></strong></div>
<div>放在需要注释的代码块之前：</div>
<div><span style="font-size: 9pt; color: #3f7f5f;">/*<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">对代码块功能性的描述——单行注释。</span><span style="font-size: 9pt; color: #3f7f5f;"><span class="Apple-converted-space"> </span>*/</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">/*</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;"> *<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">当描述超过</span><span style="font-size: 9pt; color: #3f7f5f;">120</span><span style="font-size: 9pt; color: #3f7f5f;">字符时的代码块注释——多行注释。</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;"> */</span></div>
<div> </div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580243"><span><span style="font-size: 10.5pt; line-height: 173%;">细节提示信息</span></span></a></span></strong></div>
<div>细节提示信息的使用较为灵活：</div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">这种类型的注释既可以放在某一行代码之后，也可放在几行代码之间。</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">循环</span><span style="font-size: 9pt; color: #3f7f5f;">,</span><span style="font-size: 9pt; color: #3f7f5f;">判断从</span><span style="font-size: 9pt; color: #3f7f5f;">LdSet</span><span style="font-size: 9pt; color: #3f7f5f;">取到的地址信息与保单中的地址信息是否相等。</span></div>
<div><strong><span style="font-size: 9pt; color: #7f0055;">for</span></strong><span style="font-size: 9pt; color: #000000;"><span class="Apple-converted-space"> </span>(</span><strong><span style="font-size: 9pt; color: #7f0055;">int</span></strong><span style="font-size: 9pt; color: #000000;"><span class="Apple-converted-space"> </span>i = 1; i &lt;= tLdSet.size(); i++) {  </span><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">遍历</span><span style="font-size: 9pt; color: #3f7f5f;">tLdSet</span></div>
<div><span style="font-size: 9pt; color: #000000;">   <span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">如果二者相等，则返回</span><span style="font-size: 9pt; color: #3f7f5f;">true</span></div>
<div><span style="font-size: 9pt; color: #000000;">   <span class="Apple-converted-space"> </span></span><strong><span style="font-size: 9pt; color: #7f0055;">if</span></strong><span style="font-size: 9pt; color: #000000;"><span class="Apple-converted-space"> </span>(tLdSet.get(i).getPostalAddress() == cLontema</span></div>
<div><span style="font-size: 9pt; color: #000000;">            .getAddress()) {                      </span></div>
<div><span style="font-size: 9pt; color: #000000;">       <span class="Apple-converted-space"> </span></span><strong><span style="font-size: 9pt; color: #7f0055; background-color: silver; webkit-background-clip: initial; webkit-background-origin: initial;">return</span></strong><strong><span style="font-size: 9pt; color: #7f0055; background-color: silver; webkit-background-clip: initial; webkit-background-origin: initial;">true</span></strong><span style="font-size: 9pt; color: #000000; background-color: silver; webkit-background-clip: initial; webkit-background-origin: initial;">;</span></div>
<div><span style="font-size: 9pt; color: #000000;">    }<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">// end if</span></div>
<div><span style="font-size: 9pt; color: #000000;">}<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">// end for</span></div>
<div> </div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580244"><span><span style="font-size: 10.5pt; line-height: 173%;">失效代码：</span></span></a></span></strong></div>
<div>当一段代码不再有效，但这段代码对于阅读者理解程序有重大意义，可以将其注释掉：</div>
<div>失效代码必须在代码块首尾加上批注</div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// [</span><span style="font-size: 9pt; color: #3f7f5f;">操作者</span><span style="font-size: 9pt; color: #3f7f5f;">]<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">年月日</span><span style="font-size: 9pt; color: #3f7f5f;">代码失效原因</span><span style="font-size: 9pt; color: #3f7f5f;"><span class="Apple-converted-space"> </span>START</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// [</span><span style="font-size: 9pt; color: #3f7f5f;">操作者</span><span style="font-size: 9pt; color: #3f7f5f;">]<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">年月日</span><span style="font-size: 9pt; color: #3f7f5f;">代码失效原因</span><span style="font-size: 9pt; color: #3f7f5f;"><span class="Apple-converted-space"> </span>END</span></div>
<div>举例如下：</div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// [WULigang] 20071019<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">由于</span><span style="font-size: 9pt; color: #3f7f5f;">CCtm</span><span style="font-size: 9pt; color: #3f7f5f;">改用其它设置方式，这段代码不再有效</span><span style="font-size: 9pt; color: #3f7f5f;"><span class="Apple-converted-space"> </span>START</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// contLdssEma.setOperator(tGlobal.Operator);</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// contLdssEma.setMakeDate(CubEun.getCurrentDate());</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// contLdssEma.setMakeTime(CubEun.getCurrentTime());</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// contLdssEma.setModifyDate(CubEun.getCurrentDate());</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// contLdssEma.setModifyTime(CubEun.getCurrentTime());</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">// [WULigang] 20071019<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">由于</span><span style="font-size: 9pt; color: #3f7f5f;">CCtm</span><span style="font-size: 9pt; color: #3f7f5f;">改用其它设置方式，这段代码不再有效</span><span style="font-size: 9pt; color: #3f7f5f;"><span class="Apple-converted-space"> </span>END</span></div>
<div> </div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580245"><span><span style="font-size: 10.5pt; line-height: 173%;">以下几点需要注意：</span></span></a></span></strong></div>
<div style="text-indent: 21pt;">不可滥用，在程序中的任何一行代码和注释都必须是有意义的，对程序没有意义的任何语句和注释都必须摒弃。</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/**</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*</span><span style="font-size: 9pt; color: #3f5fbf;">这个类为赞美太阳而创建。</span></div>
<div><span style="font-size: 9pt; color: #000000;"> </span><span style="font-size: 9pt; color: #3f5fbf;">*/</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">/*</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;"> *<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">这段代码非常帅，到底是做什么的呢？</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;"> */</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">老吴老吴我爱你，就像老鼠爱大米。</span></div>
<div>这样的注释除了证明编写它的人智商不到100，没有任何用处。</div>
<div> </div>
<div style="text-indent: 21pt;">没有价值的代码不应存在，当一段代码被废弃，将这段代码删除而不是仅仅注释掉它，只有在这段代码有可能被重新起用或者对本程序有重要意义的情况下，才能将它设置为无效代码。</div>
<div> </div>
<div>标点符号，当一个行注释是一个完整的陈述句，用句号结束他；是个疑问句，用问号结束他，是一句英文，用英文标点结束他，是一句中文，用中文标点结束他。</div>
<div> </div>
<div style="text-indent: 21pt;">“注释是让人更容易理解而不是更容易疑惑的存在” 前面这句话让人很难懂吗？，所以别在注释中用太复杂的语法。</div>
<div> </div>
<div style="text-indent: 21pt;">不要在不合适的地方注释，例如不要在分行的字符串间加上注释</div>
<div><span style="font-size: 9pt; color: #000000;">String<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #0000c0;">testString</span><span style="font-size: 9pt; color: #000000;"><span class="Apple-converted-space"> </span>=<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #2a00ff;">“</span><span style="font-size: 9pt; color: #2a00ff;">塞下秋来风景异，衡阳雁去无留意。</span><span style="font-size: 9pt; color: #2a00ff;">“</span></div>
<div style="text-indent: 27pt;"><span style="font-size: 9pt; color: #000000;">+<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #2a00ff;">“</span><span style="font-size: 9pt; color: #2a00ff;">四面边声连角起，千嶂里，长烟落日孤城闭。</span><span style="font-size: 9pt; color: #2a00ff;">“</span><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">上阕写景，塞下秋来，长烟落日</span></div>
<div style="text-indent: 27pt;"><span style="font-size: 9pt; color: #000000;">+<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #2a00ff;">“</span><span style="font-size: 9pt; color: #2a00ff;">浊酒一杯家万里，燕然未勒归无计。</span><span style="font-size: 9pt; color: #2a00ff;">“</span></div>
<div style="text-indent: 27pt;"><span style="font-size: 9pt; color: #000000;">+<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #2a00ff;">“</span><span style="font-size: 9pt; color: #2a00ff;">羌管悠悠霜满地，人不寐，将军白发征夫泪。</span><span style="font-size: 9pt; color: #2a00ff;">“</span><span style="font-size: 9pt; color: #000000;">;</span><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">下阕抒情，将军白发，征人难寐</span></div>
<div>一旦这个字符串需要改写或者合并成一行，中间的注释该何去何从？</div>
<div> </div>
<div>所有用<span style="font-size: 9pt; color: #3f5fbf;">/**<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">……</span><span style="font-size: 9pt; color: #3f5fbf;"><span class="Apple-converted-space"> </span>*/</span>包围的注释内容都会出现在Javadoc中，所以不要在里面写你不想让API阅读者知道的信息。</div>
<div><strong><span style="font-size: large;"><a name="_Toc180580246"><span><span style="font-size: 12pt; line-height: 173%;">JSP</span></span></a><span><span><span style="font-size: 12pt; line-height: 173%;">中的注释</span></span></span></span></strong></div>
<div>JSP中最好使用</div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">这种注释优于</span><span style="font-size: 9pt; color: #3f7f5f;"><span class="Apple-converted-space"> </span>/**/<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">因为</span><span style="font-size: 9pt; color: #3f7f5f;">MyEclips</span><span style="font-size: 9pt; color: #3f7f5f;">编辑器可以将这种注释内容显示为绿色，易于与代码区分</span></div>
<div>而不是</div>
<div><span style="font-size: 9pt; color: #3f7f5f;">/*<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">这种注释尽量不要用，因为</span><span style="font-size: 9pt; color: #3f7f5f;">MyEclips</span><span style="font-size: 9pt; color: #3f7f5f;">将里面的内容显示为黑色，不易与代码区分开来</span><span style="font-size: 9pt; color: #3f7f5f;"><span class="Apple-converted-space"> </span>*/</span></div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580247"><span><span style="font-size: 10.5pt; line-height: 173%;">描述性注释</span></span></a></span></strong></div>
<div><span style="font-size: 9pt; color: #bf5f3f;">&lt;%</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//</span><span style="font-size: 9pt; color: #3f7f5f;">程序名称：通常是该</span><span style="font-size: 9pt; color: #3f7f5f;">JSP</span><span style="font-size: 9pt; color: #3f7f5f;">文件名</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//</span><span style="font-size: 9pt; color: #3f7f5f;">程序功能：该</span><span style="font-size: 9pt; color: #3f7f5f;">JSP</span><span style="font-size: 9pt; color: #3f7f5f;">功能描述</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//</span><span style="font-size: 9pt; color: #3f7f5f;">创建日期：</span><span style="font-size: 9pt; color: #3f7f5f;">2002-06-19 11:10:36</span><span style="font-size: 9pt; color: #3f7f5f;">（越精确越好）</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//</span><span style="font-size: 9pt; color: #3f7f5f;">创建人</span><span style="font-size: 9pt; color: #3f7f5f;"> </span><span style="font-size: 9pt; color: #3f7f5f;">：</span><span style="font-size: 9pt; color: #3f7f5f;">CrtHtml</span><span style="font-size: 9pt; color: #3f7f5f;">程序创建</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//</span><span style="font-size: 9pt; color: #3f7f5f;">更新记录：</span><span style="font-size: 9pt; color: #3f7f5f;"> </span><span style="font-size: 9pt; color: #3f7f5f;">更新人</span><span style="font-size: 9pt; color: #3f7f5f;">   <span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">更新日期</span><span style="font-size: 9pt; color: #3f7f5f;">     </span><span style="font-size: 9pt; color: #3f7f5f;">更新原因</span><span style="font-size: 9pt; color: #3f7f5f;">/</span><span style="font-size: 9pt; color: #3f7f5f;">内容</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//            </span><span style="font-size: 9pt; color: #3f7f5f;">人名</span><span style="font-size: 9pt; color: #3f7f5f;">        </span><span style="font-size: 9pt; color: #3f7f5f;">日期</span><span style="font-size: 9pt; color: #3f7f5f;">          <span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f7f5f;">原因</span></div>
<div><span style="font-size: 9pt; color: #3f7f5f;">//</span><span style="font-size: 9pt; color: #3f7f5f;">例如：</span><span style="font-size: 9pt; color: #3f7f5f;">     niuzj 2006-08-23 YDtm</span><span style="font-size: 9pt; color: #3f7f5f;">需要在录入受益人信息时增加一个</span><span style="font-size: 9pt; color: #3f7f5f;">“</span><span style="font-size: 9pt; color: #3f7f5f;">性别</span><span style="font-size: 9pt; color: #3f7f5f;">”</span><span style="font-size: 9pt; color: #3f7f5f;">字段</span></div>
<div><span style="font-size: 9pt; color: #bf5f3f;">%&gt;</span></div>
<div>幸福的JSP通常用于前台显示和数据提交，由于功能相对简单，我们不提倡在JSP中加入太多java风格的注释。</div>
<div> </div>
<div><strong><span style="font-size: large;"><a name="_Toc180580248"><span><span style="font-size: 12pt; line-height: 173%;">Javascript</span></span></a><span><span><span style="font-size: 12pt; line-height: 173%;">的注释</span></span></span></span></strong></div>
<div>我们Test系统大部分javascript的注释写的较为凌乱，终其原因，大部分人都是以java软件工程师的身份进入公司，因此对javascript不够重视，实际上javascript是一种解释执行的语言，我们页面所运行的javascript实际上是每次客户端请求时从后台服务器发送过去的，因此javascript体积越小页面传输速度越快。</div>
<div>幸福项目组要求，新建立的.js文件在程序能够被理解的时候尽量不要在里面添加注释。</div>
<div> </div>
<div>描述性注释示例，如果创建一份通用的js文件这部分信息是不可少的：</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/*************************************************************************</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * &lt;p&gt;Title: Test 1.0&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * &lt;p&gt;Description: SScompanyTest</span><span style="font-size: 9pt; color: #3f5fbf;">管理系统</span><span style="font-size: 9pt; color: #3f5fbf;">&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * &lt;p&gt;Copyright: Copyright (c) 2005 SScompany, Co.Ltd. All Rights Reserved&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * &lt;p&gt;Company: SScompany &lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * &lt;p&gt;WebSite: http://www.SScompany.com.cn&lt;/p&gt;</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> *</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * @author   : SScompany</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * @version : 1.00</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * @date     : 2006-11-08</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * @direction: Test</span><span style="font-size: 9pt; color: #3f5fbf;">系统多行显示</span><span style="font-size: 9pt; color: #3f5fbf;">/</span><span style="font-size: 9pt; color: #3f5fbf;">输入表格</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * @comment : XinYQ formatted on 2006-11-08</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> **************************************************************************/</span></div>
<div>但如果仅仅是创建一份用于某个单独页面逻辑的js文件，还是不要增加太多注释了，会影响速度的。</div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580249"><span><span style="font-size: 10.5pt; line-height: 173%;">解释性注释</span></span></a></span></strong></div>
<div>用于对js的function进行注释</div>
<div><span style="font-size: 9pt; color: #3f5fbf;">/*****************************************************</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * </span><span style="font-size: 9pt; color: #3f5fbf;">保存集体投保单的提交</span><span style="font-size: 9pt; color: #3f5fbf;">（</span><span style="font-size: 9pt; color: #3f5fbf;">function</span><span style="font-size: 9pt; color: #3f5fbf;">的功能描述）</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * </span><span style="font-size: 9pt; color: #3f5fbf;">参数</span><span style="font-size: 9pt; color: #3f5fbf;"> </span><span style="font-size: 9pt; color: #3f5fbf;">：</span><span style="font-size: 9pt; color: #3f5fbf;"> (</span><span style="font-size: 9pt; color: #3f5fbf;">行参，由于</span><span style="font-size: 9pt; color: #3f5fbf;">javascript</span><span style="font-size: 9pt; color: #3f5fbf;">的</span><span style="font-size: 9pt; color: #3f5fbf;">function</span><span style="font-size: 9pt; color: #3f5fbf;">行参是没有类型标志的，最好在此告知参数类型</span><span style="font-size: 9pt; color: #3f5fbf;">)</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> * </span><span style="font-size: 9pt; color: #3f5fbf;">返回值：</span><span style="font-size: 9pt; color: #3f5fbf;"> </span><span style="font-size: 9pt; color: #3f5fbf;">（返回信息，注意冒号与参数列表对齐，并描述返回值类型）</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> *****************************************************</span></div>
<div><span style="font-size: 9pt; color: #3f5fbf;"> */</span></div>
<div><strong><span style="font-size: medium;"><a name="_Toc180580250"><span><span style="font-size: 10.5pt; line-height: 173%;">提示性注释</span></span></a></span></strong></div>
<div style="text-indent: 21pt;">除较为复杂的算法外，本文档不建议在Javascript文件大量编写提示性注释，此外，也不建议将业务逻辑放在javascript中，因为除了效率的考虑之外，javascript的安全性也值得怀疑。</div>
<div>提示性注释举例：</div>
<div><span style="font-size: 9pt; color: #7f0055;">this</span><span style="font-size: 9pt; color: #000000;">.formName = formName ||<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #8e00ff;">“fm”</span><span style="font-size: 9pt; color: #000000;">;<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">//</span><span style="font-size: 9pt; color: #3f5fbf;">表单名称</span></div>
<div><span style="font-size: 9pt; color: #7f0055;">this</span><span style="font-size: 9pt; color: #000000;">.name = name ||<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #8e00ff;">“”</span><span style="font-size: 9pt; color: #000000;">;<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">//</span><span style="font-size: 9pt; color: #3f5fbf;">实例名称</span></div>
<div><span style="font-size: 9pt; color: #7f0055;">this</span><span style="font-size: 9pt; color: #000000;">.count = 0;<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">//</span><span style="font-size: 9pt; color: #3f5fbf;">行输入对象的行数</span></div>
<div><span style="font-size: 9pt; color: #7f0055;">this</span><span style="font-size: 9pt; color: #000000;">.add = 1;<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">//</span><span style="font-size: 9pt; color: #3f5fbf;">是否可以允许增加，删除</span><span style="font-size: 9pt; color: #3f5fbf;">1</span><span style="font-size: 9pt; color: #3f5fbf;">表示可以，</span><span style="font-size: 9pt; color: #3f5fbf;">0</span><span style="font-size: 9pt; color: #3f5fbf;">表示不可以</span></div>
<div><span style="font-size: 9pt; color: #7f0055;">this</span><span style="font-size: 9pt; color: #000000;">.select = 0;<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">//</span><span style="font-size: 9pt; color: #3f5fbf;">是否可以选择，</span><span style="font-size: 9pt; color: #3f5fbf;">1</span><span style="font-size: 9pt; color: #3f5fbf;">表示可以，</span><span style="font-size: 9pt; color: #3f5fbf;">0</span><span style="font-size: 9pt; color: #3f5fbf;">表示不可以</span></div>
<div><span style="font-size: 9pt; color: #7f0055;">this</span><span style="font-size: 9pt; color: #000000;">.title = 1;<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; color: #3f5fbf;">//</span><span style="font-size: 9pt; color: #3f5fbf;">是否现实</span><span style="font-size: 9pt; color: #3f5fbf;">title 1</span><span style="font-size: 9pt; color: #3f5fbf;">表示显示，</span><span style="font-size: 9pt; color: #3f5fbf;">0</span><span style="font-size: 9pt; color: #3f5fbf;">表示不显示</span></div>
<div> </div>
<div>javascript注释可以参看common包中公司前辈们的大作，有些程序至今无人能改。考虑到<span style="font-size: 9pt;">Test</span>系统的总销售额，用一字千金来形容这些代码也不为过。</div>
<div> </div>
<div><strong><span style="font-size: large;"><a name="_Toc180583186"><span style="font-size: 12pt; line-height: 173%;">HTML</span></a><span style="font-size: 12pt; line-height: 173%;">的注释</span></span></strong></div>
<div>HTML中主要是解释性注释，便于阅读者知道某一个TABLE或者DIV上应该输入什么样的 字段。</div>
<div>CCtm项目组的HTML中有两种主要注释方法</div>
<div>HTML风格的注释方法，可用于所有HTML和JSP文件</div>
<div><span style="font-size: 10pt; color: #3f5fbf;">&lt;!&#8211; HTML</span><span style="font-size: 10pt; color: #3f5fbf;">注释，会被发送到客户端，考虑到安全性，不推荐使用</span><span style="font-size: 10pt; color: #3f5fbf;"><span class="Apple-converted-space"> </span>&#8211;&gt;</span></div>
<div>JSP 的注释方法同样可以注释HTML模块功能，只能用于JSP文件</div>
<div><span style="font-size: 10pt; color: #3f5fbf;">&lt;%&#8211; JSP</span><span style="font-size: 10pt; color: #3f5fbf;">引擎会自动忽略的注释，不会被发送到客户端，推荐使用</span><span style="font-size: 10pt; color: #3f5fbf;"><span class="Apple-converted-space"> </span>&#8211;%&gt;</span></div>
<div><strong><span style="font-size: large;"><a name="_Toc180583187"><span style="font-size: 12pt; line-height: 173%;">鸣谢</span></a></span></strong></div>
<div>hjj<span>  <span class="Apple-converted-space"> </span></span>为CCtm项目组提供的培训。</div>
<div>lx<span>    <span class="Apple-converted-space"> </span></span>为CCtm项目组提供的注释规范。</div>
<p> </p></blockquote>
<p><span class="Apple-style-span" style="word-spacing: 0px; text-transform: none; color: #000000; text-indent: 0px; font-family: Verdana; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0;"><span class="Apple-style-span" style="word-spacing: 0px; text-transform: none; color: #000000; text-indent: 0px; font-family: Verdana; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0;"> </span></span></p>
<p> </p>
<p> </p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.isdada.com/comment-specification.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

