ms ajax 中枚举定义 注释格式

MyEnum = function() {
   /// <summary>..</summary>
}
MyEnum.prototype = {
  One: 1,
  Two: 2
}
MyEnum.registerEnum("MyEnum");

----------------------------------------------

Type.registerNamespace('Custom.UI');

Custom.UI.BorderBehavior = function(element) {
    /// <summary>A border behavior</summary>
    /// <param name="element">Associated element</param>
    Custom.UI.BorderBehavior.initializeBase(this, [element]);
}
Custom.UI.BorderBehavior.prototype = {
    ...
    get_color: function() {
       /// <summary>Color</summary>
       /// <value type="String"/>
       return this._color;
    },
    ...
}

posted @ 2008-02-01 09:13  老大卫  阅读(188)  评论(0编辑  收藏  举报