跳到主要内容

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
}
]
}
]);