共用方式為


SP.ClientRuntimeContext.executeQueryAsync(succeededCallback, failedCallback) Method

Applies to: SharePoint Foundation 2010

Executes the current pending request asynchronously on the server.

SP.ClientRuntimeContext.executeQueryAsync(succeededCallback, failedCallback);

Parameters

Type: SP.ClientRequestSucceededEventHandler

Type: SP.ClientRequestFailedEventHandler

Applies To

SP.ClientRuntimeContext Class

Remarks

This virtual method is "asynchronous", which means that the code will continue to be executed without waiting for the server to respond.

See Also

Reference

SP.ClientRuntimeContext Methods

SP.ClientRuntimeContext Properties

SP Namespace