在HTML页面中获取SharePoint ClientContext

时间:2017-01-09 17:36:28

标签: javascript sharepoint csom

我尝试从HTML页面获取 SharePoint 客户端上下文。我已将 sp.js,sp.core.js,sp.runtime.js,init.js,MicrosoftAjax.js 添加到页面中。

但每次它都给我错误:

 "Object doesn't support property or method 'get_staticObjects'".

有一个问题。当我在加载所有其他脚本后加载 sp.js 时,我得到一个不同的错误:

 "Sys.ArgumentException: Value does not fall within the expected range.
  Parameter name: serverRelativeUrl".

即使我使用了完整网址即https:// ...

,也会弹出此错误

0 个答案:

没有答案