如何使用javascript获取网站集网址? [英] How to get site collection url using javascript?
本文介绍了如何使用javascript获取网站集网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了一个需要获取网站集 url 以传递函数的需求.请帮忙?
I am stuck up in a requirement where i need to get the site collection url to pass in a function. Please help?
推荐答案
您可以使用 L_Menu_BaseUrl
变量,它由某些 SharePoint 的默认脚本自动设置.
You can use the L_Menu_BaseUrl
variable, it is set automatically by some of SharePoint's default scripts.
您可以在此处找到有关它的更多信息
You can find more information about it here
- http://vrdmn.blogspot.com/2011/08/javascript-lmenubaseurl-varaible-for.html
- http://weblogs.asp.net/jan/archive/2009/05/18/determine-the-url-of-sharepoint-web-services-using-jquery-javascript.aspx
这篇关于如何使用javascript获取网站集网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文