7、杂项
①提示换行
这个问题肯定困扰了不少人,在c#的xml注释中是para,但是在javascript中是 
;
/// <summary>
/// 这是C#中的注释
/// <para>这是新行</para>
/// </summary>
/// 这是C#中的注释
/// <para>这是新行</para>
/// </summary>
②type类型
下面列出常见的类型
8、完整示例及截图
<script type="text/javascript">
function myClass() {
/// <summary>
/// 这是一个类
/// http://sorex.cnblogs.com/
/// </summary>
/// <field name="width" type="Number" integer="true">这是width属性 http://sorex.cnblogs.com/</field>
this.name = http://sorex.cnblogs.com/;
myClass.prototype.width = 12;
myClass.prototype.get_name = function () {
/// <summary>
/// 这是一个getter方法
/// http://sorex.cnblogs.com/
/// </summary>
/// <value type="String">返回值</value>
return this.name;
}
myClass.prototype.height = function (h) {
/// <summary>
/// 这是height方法
/// http://sorex.cnblogs.com/
/// </summary>
/// <param name="h" type="Number">
/// 请输入h值
/// </param>
/// <returns type="String" />
return h.toString();
/// <reference path="pathto/script.js"/>
/// <reference name="MicrosoftAjax.js"/>
}
}
var my = new myClass();
</script>
function myClass() {
/// <summary>
/// 这是一个类
/// http://sorex.cnblogs.com/
/// </summary>
/// <field name="width" type="Number" integer="true">这是width属性 http://sorex.cnblogs.com/</field>
this.name = http://sorex.cnblogs.com/;
myClass.prototype.width = 12;
myClass.prototype.get_name = function () {
/// <summary>
/// 这是一个getter方法
/// http://sorex.cnblogs.com/
/// </summary>
/// <value type="String">返回值</value>
return this.name;
}
myClass.prototype.height = function (h) {
/// <summary>
/// 这是height方法
/// http://sorex.cnblogs.com/
/// </summary>
/// <param name="h" type="Number">
/// 请输入h值
/// </param>
/// <returns type="String" />
return h.toString();
/// <reference path="pathto/script.js"/>
/// <reference name="MicrosoftAjax.js"/>
}
}
var my = new myClass();
</script>