语法
getscripts(): table返回值
| 名称 | 类型 | 描述 |
|---|---|---|
scripts | table | 包含请求值的表。 |
说明
返回运行时可访问的所有脚本实例。
无需参数即可调用。函数会从当前 runtime 状态读取所需上下文。
返回 scripts (table)。使用返回表区分成功值、nil 结果和可恢复错误。
示例
使用占位值的示例调用。
local result = getscripts()
print(result)脚本
getscripts(): table| 名称 | 类型 | 描述 |
|---|---|---|
scripts | table | 包含请求值的表。 |
返回运行时可访问的所有脚本实例。
无需参数即可调用。函数会从当前 runtime 状态读取所需上下文。
返回 scripts (table)。使用返回表区分成功值、nil 结果和可恢复错误。
使用占位值的示例调用。
local result = getscripts()
print(result)