获取Javascript中的ReadOnly属性 [英] Get the ReadOnly property in Javascript
问题描述
您好,
是否可以通过JavaScript获取网站的ReadOnly属性?作为JSOM或API.
Is there any way to get the ReadOnly property of a site in JavaScript? either as JSOM or API.
如果该脚本是从子站点访问的,而无权访问父站点的用户,他将能够读取此属性而不会出现任何访问问题?
Also if this script is accessed from a sub site, by a user who don't have access to parent site, will he be able to read this property with out any access issue?
谢谢
Anoop.KV
推荐答案
嗨Anoop.K.V,
Hi Anoop.K.V,
要使用JavaScript获取网站的ReadOnly属性,可以使用API.
To get the ReadOnly property of a site in JavaScript, API can work.
如果用户想要获取站点的属性,则他应该在子站点中具有访问权限.它与父网站无关.
If the user wants to get the properties of the site, he should have the access permission in the subsite. And it has nothing to do with the parent site.
更多参考文献:
SP.ClientContext.web属性(sp.js).
SP.ClientContext.web property (sp.js).
https://msdn.microsoft.com/en-us/library/office/jj246877 .aspx
使用Java脚本获取SPWeb属性(属性包).
Get SPWeb properties (property bag) using Javascript..
https://gist.github.com/Zhaobab/9116893
使用SharePoint JavaScript客户端对象模型获取网站属性.
Using SharePoint JavaScript Client Object Model to Get Web Site Properties.
http://www.sharepointsol.com/2015/02/sharepoint -2013-JSOM-get-web.html
最诚挚的问候,
萨拉范
这篇关于获取Javascript中的ReadOnly属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!