Skip to content

删除注释

通过deleteAnnotations方法删除单个/多个注释,可接受的参数:

  • 单个注释对象;
  • 多个注释对象组成的一维数组;
javascript
const annotationManager = docViewer.getAnnotationManager()
const annotationsList = annotationManager.getAnnotationsList()
annotationManager.deleteAnnotation(annotationsList[0])
annotationManager.deleteAnnotations(annotationsList)