共用方式為


SP.ClientContext.current Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets the current client context of the client-side object model (CSOM) runtime.

var value = SP.ClientContext.get_current();

Property Value

Type: SP.ClientContext

Applies To

SP.ClientContext Class

Remarks

This property can only be used in the Silverlight and JavaScript client object models.

See Also

Reference

SP.ClientContext Methods

SP.ClientContext Properties

SP Namespace