sjs富文本格式结构是这样的:
{"converted":[{"style":{"foreColor":"#000000","font":"9pt'Times New Roman'"},"text":"DCU:0.3% ("},{"style":{"foreColor":"#000000","font":"italic9pt 'Times NewRoman'"},"text":"k"},{"style":{"foreColor":"#000000","font":"9pt'Times New Roman'"},"text":"=2)、ACU:0.3%("},{"style":{"foreColor":"#000000","font":"italic9pt 'Times NewRoman'"},"text":"k"},{"style":{"foreColor":"#000000","font":"9pt'Times New Roman'"},"text":"=2)"}],"text":"DCU:0.3% (k=2)、ACU:0.3%(k=2)","richText":[{"style":{"foreColor":"#000000","font":"9pt'Times New Roman'"},"text":"DCU:0.3% ("},{"style":{"foreColor":"#000000","font":"italic9pt 'Times NewRoman'"},"text":"k"},{"style":{"foreColor":"#000000","font":"9pt'Times New Roman'"},"text":"=2)、ACU:0.3%("},{"style":{"foreColor":"#000000","font":"italic9pt 'Times NewRoman'"},"text":"k"},{"style":{"foreColor":"#000000","font":"9pt'Times New Roman'"},"text":"=2)"}]}
我想要实现sjs上一个带格式的数据 用poi 渲染到word里 有啥简单的方式吗
|