Foreach file in directory jQuery

前端 未结 4 1327
南方客
南方客 2020-12-21 13:09

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

Thank you!

4条回答
  •  伪装坚强ぢ
    2020-12-21 13:42

    $('selector').each(function(idx, elm){
        //some code
    });
    

    Will allow you to iterate over a list, applying the same function to each. However, accessing the filesystem is not possible.

提交回复
热议问题