1. annotation
作用:模型快照添加或替换描述。
1.1. 参数说明:
形式参数:有
名称 | 说明 | 类型 | 是否必填 | 示例 |
---|---|---|---|---|
key | 快照key | 字符串 string | 是 | "35165165" |
description | 快照注释 | 字符串 string | "注释1" |
返回值说明 | 类型 | 示例 |
---|---|---|
无返回值 | NULL | NULL |
1.2. 调用方式:
/**
* 该方法用来给模型快照添加或替换描述,
* @method annotation
* @param {string} key 快照的key
* @param {string} description 快照的注释
* @return {void}
*/
snapshot.annotation("35165165","注释1");