IMG SRC tags and JavaScript

前端 未结 13 1230
眼角桃花
眼角桃花 2020-12-02 02:09

Is it possible to call a JavaScript function from the IMG SRC tag to get an image url?

Like this:





        
13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 02:27

    Since you're using .NET, you could add the runat="server" attribute and set the src in your codebehind.

提交回复
热议问题