从R2020b,使用附加
方法,而不是添加
方法将内容添加到这些报告API类的对象:
mlreportgen.report.Report
mlreportgen.report.Chapter
mlreportgen.report.Section
将内容添加到一个DOM API对象,比如一个mlreportgen.dom.Paragraph
对象,继续使用附加
DOM对象的方法。使用的优势附加
将内容添加到报告API对象是你使用相同的方法名使用DOM API将内容添加到对象。
没有删除的计划添加
的方法报告
,章
,或部分
类。报告API使用的程序添加
方法将继续运行。
更新现有的代码,替换方法名添加
与附加
由表中的示例所示。