Browsing Server Directory with javascript

前端 未结 1 1198
悲哀的现实
悲哀的现实 2020-12-12 07:00

Is it possible to use Javascript to list all the files contained in a subfolder?

I have a bunch of images that need to be linked too, but I would like it to be dynam

相关标签:
1条回答
  • 2020-12-12 07:26

    Is it possible to use Javascript to list all the files contained in a subfolder?

    No. You would usually set up a simple server side script that does the listing (e.g. using PHP's glob()), and output a JSON array, for example.

    0 讨论(0)
提交回复
热议问题