跳到主要内容

添加评论

向演示文稿添加评论。

语法

expression.AddComment(oCommentData);

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

参数

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

返回值

string(字符串) | null

示例

window.Asc.plugin.executeMethod ("AddComment", [
{
"UserName": "John Smith",
"QuoteText": "text",
"Text": "comment",
"Time": "1662737941471",
"Solved": true,
"Replies": [
{
"UserName": "Mark Potato",
"Text": "reply 1",
"Time": "1662740895892",
"Solved": false
}
]
}
], function (comment) {
console.log (comment)
});