How to load all the images from one of my folder into my web page, using Jquery/Javascript

后端 未结 14 2321
情深已故
情深已故 2020-11-22 10:18

I have a folder named \"images\" in the same directory as my .js file. I want to load all the images from \"images\" folder into my html page using Jquery/Javascript.

<
14条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 10:56

    In jQuery you can use Ajax to call a server-side script. The server-side script will find all the files in the folder and return them to your html file where you will need to process the returned information.

提交回复
热议问题