How can I iterate through files in Javascript

前端 未结 4 1845
小蘑菇
小蘑菇 2021-01-21 05:08

Is it possible to iterate through a collection of files in Javascript? I am writing a jQuery plugin that takes either an array of images or, I was hoping, a directory containin

4条回答
  •  借酒劲吻你
    2021-01-21 05:59

    You would need to create a web service to fetch the list of files. You can't use ajax to directly fetch the directory listing because ajax calls are restricted to the domain.

提交回复
热议问题