跳到主要内容

mount 文档失败,控制台报错 No element found for selector

问题描述

调用 ZOfficeSDK.mount 时失败,控制台报错类似:No element found for the selector "#xxx"

解答

在调用 ZOfficeSDK.mount 的那一刻,页面上没有「传入 mount 的 selector 参数」对应的 DOM,需保证在调用时,用于挂载文档的 DOM 已经存在。