本文介绍了想要从文档库文件夹中获取文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello Experts,
Hello Experts,
我有一个文档库,其中包含一些文件夹,如F1,F2,F3,F4。在每个文件夹中,有一个文件,我想从所有文件夹中获取文件名。
I have one document library, which has some folders like F1,F2,F3,F4. In each folder, have one file and I want to get files name from all folder.
如何使用rest API实现此目的
How can i achieve this using rest API
谢谢。
推荐答案
我们可以使用下面的REST端点来实现它。
We can use the REST endpoint below to achieve it.
/_api/web/lists/getByTitle('<list title>')/items?
以下示例代码供您参考。
The following example code for your reference.
<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
这篇关于想要从文档库文件夹中获取文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!