请求执行器 JavaScript 参考 (sp.requestexecutor.js)

上次修改时间: 2015年3月9日

适用范围: JavaScript | SharePoint Foundation 2013 | SharePoint Server 2013

The Request Executor library enables cross-domain client-side calls, which are required when coding against SharePoint services when pages are hosted outside of SharePoint.

本节内容

The Request Executor library—also known as the cross-domain library--contains objects and enumerations that support message processing, requests, responses, commands, errors, and exceptions.

Table 1. SP namespace in Request Executor library

Name

Description

PostMessageCommands enumeration

此成员仅供内部使用,不能直接在您的代码中使用。

PostMessageRequestInfo enumeration

此成员仅供内部使用,不能直接在您的代码中使用。

PostMessageResponseInfo enumeration

此成员仅供内部使用,不能直接在您的代码中使用。

RequestExecutor object

Provides an abstract class to issue a Web request to the server and get a response from the server.

RequestExecutorErrors enumeration

Specifies error messages thrown by the SP。RequestExecutor 对象 (sp.requestexecutor.js) object.

RequestExecutorExceptions enumeration

Specifies exceptions thrown by the SP。RequestExecutor 对象 (sp.requestexecutor.js) object.

RequestExecutorMessageProcessor object

Processes messages for the SP。RequestExecutor 对象 (sp.requestexecutor.js) object.

RequestExecutorMessageProcessorInitInfo enumeration

Initialization information for the RequestExecutorMessageProcessor object.

外部资源

SharePoint 相关应用程序的 JavaScript API 参考

另请参阅

其他资源

SharePoint 2013: Get the host web title using the cross-domain library (JSOM)