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

后端 未结 14 2226
情深已故
情深已故 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 11:11

    Add the following script:

    
    

    then create a js file with the following:

    var g_FOLDER_CONTENTS = mlString(function() { /*! 
    1.png
    2.png
    3.png 
    */}); 
    

提交回复
热议问题