【发布时间】:2017-05-31 15:05:18
【问题描述】:
在 Angular 2 项目中,我安装了版本号为 0.5.0beta 的 html2canvas 模块。
然后在我的 TS 文件中,我将其导入为:
import html2canvas from 'html2canvas';
然后在我编写的 pdfDownload 方法中,
html2canvas (document.getElementById('exportthis'), {
onrendered : function (canvas) {
在这之后,当我执行npm start 命令时,我得到了类似的错误,
onrendered 不是 html2canvasOptions 中定义的属性。
谁能帮我解决这个问题? 这是我第一次研究 angular 2 和 html2canvas。
【问题讨论】:
-
欢迎来到 Stack Overflow!请查看我们的SO Question Checklist,以帮助您提出一个好问题,从而得到一个好的答案。
标签: angular html2canvas