Jsreport 是一个专门的报告平台,已在开源 JavaScript 运行时环境 Node.js 中开发。该平台具有广泛的用例,包括 HTML 到 PDF 的转换。 只需使用 Chrome 浏览器,您只需安装 jsreport npm 包并调用单个函数。 Jsreport 并非 Google Chrome 专用,并且与一系列服务和技术兼容,以打印输出。这包括 Apache FOP,用于呈现 XML 文件。 工作原理 安装 jsreport npm 并调用一个函数: const http = require('http'); const jsreport = require('jsreport'); http.createServer (async (req, res) => { try { const result = await jsreport.render({ template: { content
参考 - SPA 框架 Angular https://angular.io JavaScript 框架的比较 https://jsreport.io/the-ultimate-guide-to-javascript-frameworks