Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将一些输入字段值作为参数发送到 jsreport 以显示基于参数的报告。如何显示在生成的报告中传递的参数。
您可以创建辅助功能
function toJSON(data) { return JSON.stringify(data); }
然后将整个序列化输入数据打印到报告中(例如使用把手)
<span>{{{toJSON this}}}</span>