共用方式為


SP.Site.openWebById(gWebId) Method

Applies to: SharePoint Foundation 2010

Returns the site with the specified GUID.

var value = SP.Site.openWebById(gWebId);

Parameters

  • gWebId
    A GUID that specifies which site to return.

Type: SP.Guid

Return Value

Type: SP.Web

Applies To

SP.Site Class

See Also

Reference

SP.Site Methods

SP.Site Properties

SP Namespace