REST API调用使用html页面获取SharePoint列表信息 [英] REST API call to get SharePoint list information using html page

查看:102
本文介绍了REST API调用使用html页面获取SharePoint列表信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写一个基本的HTML页面来对SharePoint列表进行REST调用以获取信息。 SharePoint 2013版本。如何加载SP .js文件以在我的页面中使用它。由于网页在自己的上下文中运行,是否会阻止跨站点调用?或者你可以通过传递SP url硬编码来使用主机上下文调用
?你能举个例子吗?谢谢!

I need to write a basic HTML page to make a REST call to a SharePoint list to get information. SharePoint 2013 version. How do i load SP .js files to use it in my page. since the web page runs within the own context, does it prevent a cross site calls? Or can you call using host context by passing the SP url hardcoded? Can you provide me some example. Thanks!

推荐答案

您好,您需要做的就是将脚本文件上传到文档库(如果已存在,则可能是站点资产)你的网站)。然后获取您上传的文件的URL,并将其放在内容编辑器Web部件的内容链接中。
Hi Alex, all you would need to do is upload the script file to a document library (maybe Site Assets if that already exists in your site). Then get the URL of the file you uploaded and place that in the content link of a content editor web part.


这篇关于REST API调用使用html页面获取SharePoint列表信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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