ChangeComment
更改指定的批注。
语法
expression.ChangeComment(sId, oCommentData);
expression - 表示 Api 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| sId | 必需 | string | 批注 ID。 | |
| oCommentData | 必需 | CommentData | 包含新批注数据的对象。 |
返回值
boolean
示例
window.Asc.plugin.executeMethod ("ChangeComment", ["1_631",
{
"UserName": "John Smith",
"QuoteText": "text",
"Text": "comment",
"Time": "1662737941471",
"Solved": true,
"Replies": [
{
"UserName": "Mark Potato",
"Text": "reply 1",
"Time": "1662740895892",
"Solved": false
}
]
}
]);