代码如下:importpuppeteerfrom "puppeteer"; /** * 生成 PDF 文件 */ async function generatePDF() { // 启动浏览器。为了演示效...