My DOM looks like this:
16条回答 耶瑟儿~ (楼主) 2020-11-22 02:02 This is a guaranteed way to get it done in Vanilla (or simply Pure) JavaScript: var picurl = 'pictures/apple.png'; document.getElementById("image_id").src=picurl; 0 讨论(0) 查看其它16个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
This is a guaranteed way to get it done in Vanilla (or simply Pure) JavaScript:
var picurl = 'pictures/apple.png'; document.getElementById("image_id").src=picurl;