我能够导入jsPDF,但是我无法使用jspdf-autotable中的autoTable方法,不知道如何将它作为jsPDF的依赖项导入。 import { Injectable, Component } from '@angular/core';
import * as jsPDF from 'jspdf';
import { autoTable } from 'jspdf-autotabl
我使用JSPdf上的角应用程序,我试图用JS autotable插件,但我遇到的JS错误 EXCEPTION: Uncaught (in promise): TypeError: doc.autoTable is not a function TypeError: doc.autoTable is not a function 我有通过npm安装jspdf和jspdf-autotable,我确认它