# dcb.openDocument

新页面打开文档。

# 参数

属性 类型 默认值 必填 说明 最低版本
filePath

string

文件地址。目前仅支持网络地址。

fileType

doc | docx | xls | xlsx | ppt | pptx | pdf | txt

根据文件地址的后缀自动判断

文件类型。

# 示例

await dcb.openDocument({
  filePath: 'https://dcb-frontend.oss-cn-chengdu.aliyuncs.com/demo/demo.pdf',
});

# 贡献者

上次更新时间: 6/19/2023, 4:35:04 PM