What is the fastest way of replacing the text of many content controls via office-js?
问题 I wrote the following function to replace a huge amount of CCs with specified values: /** replaceManyCCs() * * Replaces the content of many content controls, based on the replacementObject. * * @arg replacementObject A dictionary. The keys are the titles of the CCs which should be replaced. The values are the replacement values. */ function replaceManyCCs (replacementObject) { Word.run(function (context) { var time1 = Date.now(); // load the title of all content controls var CCc = context