富链接,同普通链接相比,富链接可包含一些描述信息。
结构描述:
rich://{"url":"***","desc":"***"}
Signature:
export declare class RichUrl
| Method | Modifiers | Description |
|---|---|---|
| build(url, desc) | static |
创建富链接。 |
| check(value) | static |
检查是否是富链接。 |
| fromFile(file) | static |
将文件转换为文件富链接。 |
| parse(richUrl) | static |
解析富链接。非富链接的会直接将其值作为 url 返回。 |
| toFile(richUrl) | static |
将文件富链接转换为文件和普通链接。 |
| transform(data, callback) | static |
转换数据中的富链接。 |
| transformFile(data, callback) | static |
转换数据中的文件富链接。 |