共用方式為


SP.ClientRuntimeContext.url Property

Applies to: SharePoint Foundation 2010

Gets the URL associated with the runtime context.

var value = SP.ClientRuntimeContext.get_url(); 

Property Value

Type: String

Applies To

SP.ClientRuntimeContext Class

See Also

Reference

SP.ClientRuntimeContext Methods

SP.ClientRuntimeContext Properties

SP Namespace