【发布时间】:2018-03-25 12:25:10
【问题描述】:
我尝试将 Office.js 加载到我的应用程序中。
我添加了<script src="https://appsforoffice.microsoft.com/lib/1/hosted/Office.js" type="text/javascript"></script>
我在控制台中收到警告和错误。
Warning: Office.js is loaded outside of Office client
和错误:o15apptofilemappingtable.js:11 GET https://telemetryservice.firstpartyapps.oaspapps.com/telemetryservice/telemetryproxy.html 404 (Not Found)
我创建的 app.js 包含:
Office.initialize = function (reason) {
$(document).ready(function () {
switch (reason) {
case 'inserted': console.log('The add-in was just inserted.');
case 'documentOpened': console.log('The add-in is already part of
the document.');
}
});
};
有人可以帮助我,请问我该如何解决?
谢谢!
【问题讨论】:
标签: javascript ms-word office-js