Members
(constant) CONSTANT1 :string
    这是一个常量
    Type:
- string
- Source:
(constant) CONSTANT2 :string
    这个常量的默认值是'a'
    Type:
- string
- Default Value:
- a
 
- Source:
(readonly) CONSTANT3 :string
Type:
- string
- Source:
retcode :number
    cgi常见的返回码
    Type:
- number
Properties:
| Name | Type | Description | 
|---|---|---|
| NOT_LOGIN | number | 未登录 | 
| PARAM_ERROR | number | 参数错误 | 
| UNKOWN_ERROR | string | 未知错误 | 
- Source:
var1 :string
    这是一个变量
    Type:
- string
- Source:
var2 :type1
Type:
- Source:
var3 :type2
Type:
- Source:
var4
一个变量
    这是一个变量
- Source:
var5 :number
Type:
- number
- Source:
var6 :*
    任何类型
    Type:
- *
- Source:
(nullable) var7 :string
    string或者null
    Type:
- string
- Source:
(non-null) var8 :string
    string且不能为null
    Type:
- string
- Source:
var9 :Array.<boolean>
    boelean数组
    Type:
- Array.<boolean>
- Source:
var10 :number|string
    number或者string
    Type:
- number | string
- Source:
var11 :object
    对象
    Type:
- object
Properties:
| Name | Type | Description | 
|---|---|---|
| a | string | 属性a | 
- Source:
var12 :object
Type:
- object
Properties:
| Name | Type | Description | 
|---|---|---|
| a | string | 属性a | 
| b | string | 属性b | 
- Source:
var13 :string
Type:
- string
- Source:
var14 :string
Type:
- string
- Source:
var15
- Source:
- See:
var17 :object
Type:
- object
Properties:
| Name | Type | Description | 
|---|---|---|
| c | string | 属性c | 
- Mixes In:
- Source:
var18
    这是Class2的一个实例
- Source:
Methods
func1(a, b, c, d, g, jopt)
    一个带参数的函数
    Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| a | string | 参数a | ||
| b | number | 1 | 参数b默认值为1 | |
| c | string | 1 | 参数c有三种支持的取值1—表示x2—表示xx3—表示xxx | |
| d | object | 参数d为一个对象 | ||
| d.e | string | 参数d的e属性 | ||
| d.f | string | 参数d的f属性 | ||
| g | Array.<object> | 参数g为一个对象数组 | ||
| g.h | string | 参数g数组中一项的h属性 | ||
| g.i | string | 参数g数组中一项的i属性 | ||
| j | string | <optional> | 参数j是一个可选参数 | 
- Source:
func2(…a)
    一个带若干参数的函数
    Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| a | string | <repeatable> | 参数a | 
- Source:
func3() → {boolean}
    这是一个有返回值函数
- Source:
Returns:
    返回值
- Type
- boolean
func4()
- Deprecated:
- 已弃用
 
- Source:
func5()
- Version:
- 1.0
 
- Source:
func6()
- Since:
- 1.0
 
- Source:
func7()
- Source:
- To Do:
- 
        - 这个函数需要优化
 
func8()
- Source:
Throws:
- 
        - 抛出异常
- Type
- string
func9(a)
This:
Parameters:
| Name | Type | Description | 
|---|---|---|
| a | string | 参数a | 
- Source:
func10(a, b) → {number}
    计算两个数值的和
    Parameters:
| Name | Type | Description | 
|---|---|---|
| a | number | 加数a | 
| b | number | 加数b | 
- Source:
Returns:
    返回a和b的和
- Type
- number
Example
func10(1, 2);    // 返回3func11()
    这是一个函数
- Source:
Type Definitions
type1
    这是自定义的type
    Properties:
| Name | Type | Description | 
|---|---|---|
| a | number | 属性a | 
| b | string | 属性b | 
- Source:
type2(a) → {string}
    这是自定义的type
    Parameters:
| Name | Type | Description | 
|---|---|---|
| a | number | 参数a | 
- Source:
Returns:
    返回值
- Type
- string