如何将imageList []数组附加到FormData?
@Override
public void gotoHyperlink(JRPrintHyperlink arg) throws JRException {
Map<String, Object> nextReportParams = new HashMap<>();
List<JRPrintHyperlinkParameter> params = arg.getHyperlinkParameters().getParameters();
for (JRPrintHyperlinkParameter jphlp : params) {
if ("reportTime".equals(jphlp.getName())){
nextReportParams.put("previousReportTime",jphlp.getValue());
}
}
JasperReport report = JasperCompileManager.compileReport("jasper/" + arg.getHyperlinkReference() + ".jrxml");
JasperPrint jasperPrint = JasperFillManager.fillReport(report, nextReportParams);
HyperLinkTest nextReport = new HyperLinkTest(jasperPrint);
openReport("Navigated to", JFrame.DISPOSE_ON_CLOSE, nextReport);
}
我创建了一个var imageList数组,因此我可以操作数组,因为它是只读的。我想使用使用FormData()的AJAX从我的imageList数组发送文件。