在Sharepoint HTML页面中使用JSOM脚本 [英] Using JSOM script in Sharepoint HTML page

查看:141
本文介绍了在Sharepoint HTML页面中使用JSOM脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个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://social.technet.microsoft.com/Forums/en-US/f592e965-1e63-401d-9f0b-ce9e699ebcb0/html-page-to-sharepoint-page?forum=sharepointdevelopmentlegacy

https://superuser.com/Questions/35291/serve-normal-html-pages-from-a-sharepoint-server


这篇关于在Sharepoint HTML页面中使用JSOM脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆