Office.js can be used to insert footnotes into a Word document. Currently, there is no Footnotes API that would make this easy, but we can still use the Ooxml APIs to insert footnotes into the document.
Here is an example gist that uses Ooxml to replace the current selection in the document with a sample text and sample footnote. I tried my best to separate out the relevant parts of the Ooxml in case you want to modify the code to incorporate multiple texts and footnotes:
Insert footnotes using Ooxml
You can use ScriptLab to import the above gist and play around with the sample.
An Office Add-in solution using Office.js can be used on Mac, along with on Windows, and on Web.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…