Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 thoujohn/pdf 库生成 pdf 时出现此错误:
DOMNode::cloneNode(): ID doc-content already defined
我只有一个观点,<div id="doc-content">所以我不知道我错过了什么。
<div id="doc-content">
我的视图没有扩展任何其他布局,因此确保没有涉及其他 html 实体。唯一提到这个 id 的地方是<style>在我给这个元素样式的标签内。
<style>
有人可以指导我吗?
我通过用一个类替换 div 的 id 并在样式表中引用这个类来解决这个问题。