共用方式為


SP.ClientRuntimeContext.applicationName Property

Applies to: SharePoint Foundation 2010

Gets or sets the name of the runtime where the current client application is located.

var value = SP.ClientRuntimeContext.get_applicationName(); 
SP.ClientRuntimeContext.set_applicationName(value);

Property Value

Type: String

Applies To

SP.ClientRuntimeContext Class

See Also

Reference

SP.ClientRuntimeContext Methods

SP.ClientRuntimeContext Properties

SP Namespace