plugin-tls
Version:
plugin-tls 是插件系统相应的工具,可快速地让任何模块具备插件机制
54 lines (25 loc) • 660 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ModeOptions](./plugin-tls.modeoptions.md) > [hasMode](./plugin-tls.modeoptions.hasmode.md)
## ModeOptions.hasMode() method
判断是否有某个模式
**Signature:**
```typescript
hasMode(mode: string | number): boolean;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
mode
</td><td>
string \| number
</td><td>
</td></tr>
</tbody></table>
**Returns:**
boolean