append string to image src using js

后端 未结 2 1110
南方客
南方客 2021-01-27 15:52

I\'ve got a page where there is \"\"

I want it so that upon loading of the page, the string \"?

2条回答
  •  迷失自我
    2021-01-27 16:10

    Use this:

    window.onload = function() {
        document.getElementById('myImage').src += "/Action=thumbnail";
    };
    

提交回复
热议问题