#base64->decode() → string
其中保存的文本(以 UTF-8 读取)。
示例
<let name="x" type="base64" value="'aGVsbG8gd29ybGQ='" />
<echo>{ $x->decode() }</echo>$x: base64 = 'aGVsbG8gd29ybGQ='
echo $x->decode()字段是关于值的一个普通事实,用点号读取,不需要方括号:$value.name。方法会接收参数或执行操作,调用方式为 ->:$value->name(arguments),也可以把值通过管道传入:$value |> name(arguments)。
| 字段 | 类型 | 说明 |
|---|---|---|
.bytes | number | 它包含的字节数。 |
base64->decode() → string<let name="x" type="base64" value="'aGVsbG8gd29ybGQ='" />
<echo>{ $x->decode() }</echo>$x: base64 = 'aGVsbG8gd29ybGQ='
echo $x->decode()->convert(from?: 'json'|yaml|'csv'|'markdown'|'latex', to?: 'json'|yaml|'csv'|html|'markdown'|'latex', header?: bool, as?: type, headers?: list, indented?: bool)->from(type: 'json'|yaml|'csv'|'markdown'|'latex', header?: bool, as?: type)->is_a(type: word)->is_null()->or(fallback)->to(type: 'json'|yaml|'csv'|html|'markdown'|'latex', headers?: list, indented?: bool)->to_string()->type()->contains(text, ignore_case?: bool)->count()->ends_with(text, ignore_case?: bool)->escape()->index_of(text, ignore_case?: bool, last?: bool)->markdown_escape()->matches(pattern: regex)->pad(width: number, char?, start?: bool)->slice(start: number, end?: number)->starts_with(text, ignore_case?: bool)->truncate(length: number, suffix?)->url_encode()