可能吗..?使用javascript从本地目录获取文件 [英] Is it possible..? Using javascript to get a file from a local directory

查看:87
本文介绍了可能吗..?使用javascript从本地目录获取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提前致谢...



从本地目录获取数据并使用javascript随机显示数据(即:将视频显示为随机在用户界面中使用javascript)是否有可能从本地目录获取数据(即Index.php文件位置)是否可能请告诉我该怎么做



我尝试过:



提前致谢...



要从本地目录获取数据并使用javascript随机显示数据(即:使用javascript在用户界面中将视频显示为随机),是否可以从本地目录(即索引)获取数据。 php文件位置)有可能请告诉我怎么做

Thanks in advance...

To get the data from the local directory and show that data in randomly using javascript (i.e: to show the video as random in user interface using javascript) is it possible to get the data from the local directory (i.e The Index.php file location) is it possible please tell be and how to do that

What I have tried:

Thanks in advance...

To get the data from the local directory and show that data in randomly using javascript (i.e: to show the video as random in user interface using javascript) is it possible to get the data from the local directory (i.e The Index.php file location) is it possible please tell be and how to do that

推荐答案

Quote:

有可能..?使用javascript从本地目录获取文件

Is it possible..? Using javascript to get a file from a local directory



否,webapps无法访问客户端文件系统,这是出于安全原因,否则任何Web恶意软件都可以访问所有您的文件。

所有可以做的就是打开一个文件打开的窗口,用户说它是否允许访问文件,但用户选择哪个文件,并且只有在需要的时候。

所以你不能从本地存储中播放一堆视频。


No, webapps don't have access to client file system, that is for security reasons, otherwise any web malware would have access to all your files.
All what can be done is opening a file open window where user say if it allow access to a file, but user choose which file, and only if a want.
So you can't play a bunch of videos from local storage.


这篇关于可能吗..?使用javascript从本地目录获取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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