# Capture 抓屏工具

抓屏工具 文档 MyCapture (opens new window)

# 基础用法

# 自定义抓屏

  • capture 通过定义 “before-capture”参数(返回promise),可以进行截图前的预处理;
  • capture 提供 “on-capture” / "on-output" / "on-failed" 三个事件;
  • capture 通过 “dom”属性 可以自定义抓取dom对象;
  • capture 可以通过配置 width / height 控制输出图片 宽高;
  • capture 可以通过 options 属性 配置 “html2canvas” 的功能;