【发布时间】:2017-06-27 15:53:20
【问题描述】:
我正在为 Outlook 365 开发一个简单的插件,但我似乎遗漏了一些简单的点,因为 office.context 变量对我来说总是空的,例如基本代码示例:
// The initialize function is required for all apps.
Office.initialize = function () {
// Checks for the DOM to load using the jQuery ready function.
$(document).ready(function () {
// After the DOM is loaded, app-specific code can run.
var item = Office.context.mailbox.item;
var subject = item.subject;
// Continue with processing the subject of the current item,
// which can be a message or appointment.
});
}
我会错过什么?插件权限最高——ReadWriteMailbox
【问题讨论】:
标签: outlook office365 outlook-addin