更新时间:2023-11-29 14:43:04
出于安全原因,您无法使用HTML/JavaScript浏览文件系统.如果您想做这样的事情,可以使用Java applet或Flash元素,但我发现这样的事情令人反感.
For security reasons you cannot browse the filesystem with HTML/JavaScript. If you want to do such a thing you could use a Java applet or a Flash element, but I found such things repulsive.
您不清楚要执行此操作的原因.如果用于下载文件并选择目标位置,则应该使用常规文件下载.
The reason you want to do this is unclear to me. If it's for downloading a file and selecting a destination, you should be using a regular file download.
您可能需要做更多的研究.我在SO上发现了几个可比的问题:
You might want to do more research. I found a couple questions on SO that are comparable: