在Sharepoint HTML页面中使用JSOM脚本 [英] Using JSOM script in Sharepoint HTML page
问题描述
大家好,
我有一个HTML页面,在这里我已经调用了Sharepoint功能所需的所有脚本,
i have an HTML page, where i have called all the scripts which are required for Sharepoint Functionalities,
即使脚本不起作用,它也会出来
even then the script doesnt work, it come out of
SP.SOD.executeFunc('sp.js','SP.ClientContext',function()循环,如何实现这一点,下面是我的代码,
SP.SOD.executeFunc( 'sp.js','SP.ClientContext',function() loop, how can i achieve this , below is my code,
使用SP.SOD.executeFunc('sp.js','SP.ClientContext',function(),因为它给出了SP.ClientContext不是构造函数错误.
am using SP.SOD.executeFunc( 'sp.js','SP.ClientContext',function(), coz it was giving SP.ClientContext is not a constructor error.
HTML
< head>
<head>
</head>
</head>
JavaScript
JavaScript
预先感谢
推荐答案
通过将其上载到库中来将HTML页面转换为SharePoint页面.然后代码应该起作用.
Convert your HTML page to SharePoint page by uploading it in a Library or so. Then the code should work.
有关更多详细信息:
https://superuser.com/Questions/35291/serve-normal-html-pages-from-a-sharepoint-server
这篇关于在Sharepoint HTML页面中使用JSOM脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!