Accessing a folder to list/play clips one by one

你离开我真会死。 提交于 2019-12-11 10:01:40

问题


I just want to know if there is an object to access a folder path which includes list of clips in javascript.

Which object I should use to list clips in a folder? Actually I can't use all objects, only provided for Ecmascript.


回答1:


JavaScript/Ecmascript cannot see the local filesystem. If it could then we'd have web pages sniffing all of our files without our consent.




回答2:


JavaScript doesn't get to see the user's file system. That'd be a huge security problem for everyone everywhere. If you're referring to the server's file system then you probably already have a better language like php that can list the directory contents and dynamically generate the JS before it is sent to the browser.



来源:https://stackoverflow.com/questions/7517837/accessing-a-folder-to-list-play-clips-one-by-one

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!