Javascript random image on click button

后端 未结 7 1631
清歌不尽
清歌不尽 2020-12-21 19:10

I\'ve been following some tutorials on how to randomize an image by setting up an array in Javascript. It\'s not working - the image itself is not appearing, not even any e

7条回答
  •  我在风中等你
    2020-12-21 19:54

    You have to add quotes in this line and close the if statement:

    
    

提交回复
热议问题