跳到主要内容

修改评论

修改指定的评论。

语法

expression.ChangeComment(sId, oCommentData);

expression - 一个表示 Api 类的变量。

参数

名称必填/选填数据类型默认值描述
sId必填string评论ID。
oCommentData必填批注数据包含新评论数据的对象。

返回值

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