outlook - Outlook 插件:Office 2016 桌面客户端:SCRIPT5022:Office.js 尚未完全加载
问题描述
我正在构建一个前景插件。插件在 office online 上运行良好,但在桌面客户端 (2016) 上失败并出现错误
SCRIPT5022: Office.js has not fully loaded. Your app must call "Office.onReady()" as part of it's loading sequence (or set the "Office.initialize" function). If your app has this functionality, try reloading this page. office.debug.js (1501,33)
这很令人困惑,因为我已经尝试了以下操作并且所有工作都在线......但不是在桌面客户端中。
版本 1
Office.initialize = function () {
$(document).ready(function () {
run();
});
};
版本 2
Office.onReady(function() {
$(document).ready(function () {
run();
});
});
版本 3:
Office.onReady(function() {
run();
});
由于某种原因,桌面客户端失败。
解决方案
推荐阅读
- java - 随着数组值的变化,将数组的值存储在单独的文件中
- c# - 如何在 LINQ 和 Lambda 中使用 LEFT JOIN 获得平均值
- elasticsearch - 使用 Kafka Connect 更新现有文档上的 Elasticsearch 字段,而不是创建新的
- c++ - 在 C++ 中使用类绘制圆
- sql - 如何根据where条件对行求和
- python - facebook 在 selenium 无头运行时检测浏览器自动化
- django - 异常 __str__ 在 Django 中返回非字符串(字节类型)
- spring-boot - InvalidFormatException for Date - 在不使用 JsonFormat 或修改原始类的情况下进行修复
- r - R - 将每个数据帧保存在数据帧列表中
- java - 从 res 文件夹中读取 csv 文件