mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-04-30 21:57:48 +02:00
89e89d4aa3
Add Chinese (Simplified) translations for all documentation, organized under a dedicated zh/ directory that mirrors the English folder structure. Co-authored-by: tanqingkuang <tanqingkuang@users.noreply.github.com> Translations originally contributed by @tanqingkuang in #45. Restructured from *-CN.md suffix pattern into zh/ directory to prevent the EPUB builder (scripts/build_epub.py collect_folder_files) from picking up Chinese files via glob("*.md") inside module folders.
51 lines
849 B
Markdown
51 lines
849 B
Markdown
# 函数:`functionName`
|
||
|
||
## 描述
|
||
简要说明这个函数的作用。
|
||
|
||
## 签名
|
||
```typescript
|
||
function functionName(param1: Type1, param2: Type2): ReturnType
|
||
```
|
||
|
||
## 参数
|
||
|
||
| 参数 | 类型 | 必填 | 描述 |
|
||
|------|------|------|------|
|
||
| param1 | Type1 | 是 | param1 的说明 |
|
||
| param2 | Type2 | 否 | param2 的说明 |
|
||
|
||
## 返回值
|
||
**类型**:`ReturnType`
|
||
|
||
返回内容的说明。
|
||
|
||
## 抛出异常
|
||
- `Error`:在输入无效时抛出
|
||
- `TypeError`:在传入错误类型时抛出
|
||
|
||
## 示例
|
||
|
||
### 基本用法
|
||
```typescript
|
||
const result = functionName('value1', 'value2');
|
||
console.log(result);
|
||
```
|
||
|
||
### 高级用法
|
||
```typescript
|
||
const result = functionName(
|
||
complexParam1,
|
||
{ option: true }
|
||
);
|
||
```
|
||
|
||
## 备注
|
||
- 其他说明或警告
|
||
- 性能注意事项
|
||
- 最佳实践
|
||
|
||
## 另请参阅
|
||
- [相关函数](#)
|
||
- [API 文档](#)
|