How to get site collection url using javascript? [closed]
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am stuck up in a requirement where i need to get the site collection url to pass in a function. Please help? 回答1: You can use the L_Menu_BaseUrl variable, it is set automatically by some of SharePoint's default