feat(tsl-api-reference): expand API and module coverage

This commit is contained in:
csh
2026-08-14 17:12:55 +08:00
parent 8f1056130d
commit 3d3036ebe1
571 changed files with 47842 additions and 14458 deletions
@@ -578,7 +578,7 @@ echo captured;
// 输出:captured
```
## `write(p1, pn)`
## `write(p_1, ...)`
声明:function
@@ -586,10 +586,10 @@ echo captured;
<!-- tags: 打印 输出 output print write writeln CGI 网络 HTTP 请求 network -->
| 参数 | 类型 | 说明 |
| ---- | ------ | -------------- |
| `p1` | string | string 字符串1 |
| `pn` | string | string 字符串n |
| 参数 | 类型 | 说明 |
| ----- | ---- | -------------------- |
| `p_1` | any | 第一个要输出的值 |
| `...` | any | 可选。更多要输出的值 |
返回:any
@@ -601,7 +601,7 @@ write("A", "B");
// 输出:AB
```
## `writeln(p1, pn)`
## `writeln(p_1, ...)`
声明:function
@@ -609,22 +609,23 @@ write("A", "B");
<!-- tags: 打印 输出 output print write writeln CGI 写入 保存 网络 HTTP 请求 -->
支持任意多个参数,按传入顺序逐个输出其内容
支持任意多个参数,按传入顺序逐个输出其内容
| 参数 | 类型 | 说明 |
| ---- | ------ | -------------- |
| `p1` | string | string 字符串1 |
| `pn` | string | string 字符串n |
| 参数 | 类型 | 说明 |
| ----- | ---- | -------------------- |
| `p_1` | any | 第一个要输出的值 |
| `...` | any | 可选。更多要输出的值 |
返回:any
### 示例
以下示例先输出 `111222`,再换行输出 `333`
以下示例先输出 `111222`,再换行输出 `333`
```tsl
// 需 CGI 宿主环境
echo "111", "222", "\n", "333";
writeln("111", "222");
writeln("333");
// 输出:
// 111222
// 333