使用Javascript获取Web应用程序下的站点列表 [英] Get a list of sites under the Web Application using Javascript
问题描述
有人知道我如何使用JavaScript查询Web根目录(site.domain.com)并返回所有子站点的列表吗?看来以前曾问过这种类型的问题,但我看不出专门针对网络根目录的任何结果.谢谢 提前. -JC
Does anyone know how I can use JavaScript to query the web root (site.domain.com) and return a list of all the sub sites? It looks like this type of question was asked before, but I don't see any result specifically to the web root. Thanks in advance. -JC
SP 2013前提条件
SP 2013 On premise
推荐答案
嗨约瑟夫,
这是您的答案:
https://sharepoint.stackexchange.com /questions/171053/list-all-subsites-with-rest-api
https://sharepoint.stackexchange. com/questions/92589/retrieving-subsites-from-parent-web-using-rest
这篇关于使用Javascript获取Web应用程序下的站点列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
select = ServerRelativeUrl,Title"
select=ServerRelativeUrl,Title"