Foreach文件在目录jQuery中 [英] Foreach file in directory jQuery

查看:136
本文介绍了Foreach文件在目录jQuery中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



谢谢!

解决方案

由于明显的安全原因,Javascript无法访问本地文件系统。这是不可能的。



除非你试图循环服务器上的文件,否则你不想使用jQuery,而是像ASP.NET或PHP或您正在使用的任何框架。


How can I do a foreach(File file in Directory) kind of thing in jQuery.

Thank you!

解决方案

Javascript does not have access to the local file system for obvious security reasons. This is not possible.

Unless you are trying to loop through files on your server, in which case you wouldn't want to use jQuery anyway but something like ASP.NET or PHP or whatever framework you are using.

这篇关于Foreach文件在目录jQuery中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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