ms ajax 中枚举定义 注释格式
MyEnum = function() {
/// <summary>..</summary>
}
MyEnum.prototype = {
One: 1,
Two: 2
}
MyEnum.registerEnum("MyEnum");
----------------------------------------------
/// <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;
},
...
}