Vue js + Codepen:html2canvas(…)。然后不是函数

问题描述 投票:0回答:1

我有自定义的pen,在这里尝试使用html2canvas库并出现错误。

[[Vue警告]:v-on处理程序中的错误:'TypeError:html2canvas(...)。然后不是函数'

如何解决此错误,并在vpen.js中在Codepen中使用html2canvas

我尝试过windows.html2canvas(),但它也返回相同的错误。

javascript vue.js html2canvas codepen
1个回答
0
投票

您可以将外部JavaScript添加到Codepen。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.