跳到主要内容

ChangeComment

Changes the specified comment.

Syntax

expression.ChangeComment(sId, oCommentData);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
sIdRequiredstringThe comment ID.
oCommentDataRequiredCommentDataAn object which contains the new comment data.

Returns

This method doesn't return any data.

Example

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