{{el.title}} {{if el.class == 'method'}} Method {{else if el.class == 'property'}} Property {{else if el.class == 'prototype'}} Prototype {{else if el.class == 'event'}} Event {{else}} Class {{/if}} {{if el.private}} Private {{/if}}
描述: {{el._desc}}
{{if el.alias}}缩略: {{el.alias}}
{{/if}} {{if el.version}}版本支持: {{el.version}}
{{/if}} {{if el.class == 'property'}}类型: {{el.type}}
{{if el.value}}参考值: {{el.value}}
{{/if}} {{/if}} {{if linkSource}}源码位置: .{{el._path}}:{{el._line}}
{{/if}} {{if el.demo}}Demo地址: 点击访问
{{/if}} {{if el.params.length}}参数:
参数名 | 类型 | 描述 | 必选 | 版本 |
---|---|---|---|---|
{{param.name}} | {{param.type}} | {{param.description}} | {{if !param.optional}} {{/if}} | {{param.version}} |
返回值: {{el.returns.type}} {{el.returns.description}}
{{/if}} {{if el.class == 'event'}} {{if el.params.length}}数据形式:
数据键值 | 类型 | 描述 | 必存在 | 版本 |
---|---|---|---|---|
{{param.name}} | {{param.type}} | {{param.description}} | {{if !param.optional}} {{/if}} | {{param.version}} |
返回值: {{el.returns.type}} {{el.returns.description}}
{{/if}} {{/if}} {{if el.example}}{{el.example}}
{{/if}}
{{if el.description}}
额外说明:
{{el.description | markdown}}{{/if}}