Change image source with JavaScript

后端 未结 13 1891
我寻月下人不归
我寻月下人不归 2020-11-27 18:20

So I\'m new with JavaScript (this is actually my first attempt to make something work) and I\'m having a bit of trouble. I thought I had enough knowledge to make this work,

13条回答
  •  野性不改
    2020-11-27 18:56

    function changeImage(a) so there is no such thing as a.src => just use a.

    demo here

提交回复
热议问题