JavaScript 複製 if (Office.context.requirements.isSetSupported(RequirementSetName, MinimumVersion)) { // Code that uses API members from RequirementSetName. } 注意 Office 測試人員計畫 若要取得任何 Office 主機的最早或每月變更,您可以加入 Office 測試人員計畫。 此方案僅適用於 Windows 計算機,而且需要 ...
Use the Office JavaScript API to extend functionality for Word, Excel, PowerPoint, and Outlook. Learn more about Office Add-ins PowerPoint Create add-ins for PowerPoint Featured tools Get the Office Add-ins Development Kit The Office Add-ins Development Kit helps you set up your environment, cre...
JavaScript 复制 Office.context.document.setSelectedDataAsync( data [, options], callback); 与该API 中所有异步函数一样,Document.setSelectedDataAsync 也有一个选项对象,其中包含可选参数,但其选项对象的参数与该 API 中其他异步函数的参数不同,因为此函数的用途是设置数据。 因此,D...
为了帮助您理解基于选区和绑定的数据访问方法的工作方式,我们将首先解释数据访问 API 如何跨不同的 Office 应用程序提供一致的数据访问。跨Office 应用程序的一致数据访问适用于:内容和任务窗格加载项类型为了创建跨不同 Office 文档无缝工作的扩展,Office JavaScript API 通过常见数据类型和将不同文档内容强制转换为三种...
Script lab is an Office JavaScript API tool for anyone who wants to learn about writing Office Add-ins for Word, Excel, PowerPoint, or Outlook. Explore Script Lab Office Scripts Use Office Scripts in Excel on the web to automate your common tasks. Learn how to create and edit Office Scri...
Office JavaScript API 库提供外接程序可用于与 Office 应用程序交互的 API。 引用库的最简单方法是使用内容分发网络 (CDN) ,方法是在 HTML 页面的 部分中添加以下 标记。HTML 复制 ... 这将在外接程序首次加载时下载并缓存 Office JavaScript API 文件,以确保它使用最新实现的 Office.js 及其针对指定版...
借助适用于 Office 的 JavaScript API,你可以创建可与 Office 主机应用程序中的对象模型进行交互的 Web 应用程序。 使用此部分可了解有关构建 Office 加载项的类、方法和其他类型的详细信息。 以下是受支持的 Office 主机应用程序的 API 列表。 通用 API 链接包括未归于特定主机的所有 API(如Office 通用 API 要求...
API 参考 仅外接程序清单参考 要求集 使用英语阅读 添加到集合 添加到计划 通过 Facebookx.com 共享LinkedIn电子邮件 加载项可使用 Office JavaScript API 与 Office 客户端应用程序中的对象进行交互。 应用程序特定的API 提供了强类型对象,它可用于与特定 Office 应用程序的本机对象进行交互。
... This will download and cache the Office JavaScript API files the first time your add-in loads to make sure that it is using the most up-to-date implementation of Office.js and its associated files for the specified version. For more information, including how to reference preview APIs...
在某些情况下,通过 Word JavaScript API 使用内容控件的外接程序可能会显示“RichApi.Error: NotImplemented”错误。 这是在 2023 年 8 月 10 日 Office.js 更新后首次注意到的,尤其是在 MacOS (内部版本 16.76) 上。 原因 ContentControl.load...