语法
info(...values?: ...any)参数
| 名称 | 类型 | 描述 |
|---|---|---|
...values? | ...any | Optional values to print as an informational message. |
说明
Writes zero or more values as an informational message. Values are converted to strings and separated with tab characters. The function returns no values.
使用 1 个参数调用: ...values。参数表会说明哪些值必填,哪些值只用于细化行为。
不返回数据。将调用视为一个动作,并在调用点附近处理错误。
示例
Write an informational message to the active console output.
info("Loaded", "scripts", 3)