通过javascript计算文件夹中的文件数

编程入门 行业动态 更新时间:2024-10-28 05:15:21
本文介绍了通过javascript计算文件夹中的文件数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有没有的文件夹。的HTML文件。我可以算不上吗?使用javascript的文件?请帮助

I have folder in which there are no. of html files. Can i count the no. of files using javascript? Please help

谢谢

推荐答案

不,这是不可能的仅限JavaScript。

No, this is not possible using JavaScript only.

您可以对页面进行Ajax调用,从服务器端代码中可以找到文件夹中的文件数,然后将结果返回给回调函数。

You can make an Ajax call to a page and from the server side code you can find the number of files in a folder and then return the result to the callback function.

我假设这些文件不在客户机中。

I assume the files are in not in the client machine.

更多推荐

通过javascript计算文件夹中的文件数

本文发布于:2023-10-16 07:02:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1496816.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   夹中   javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!