📅  最后修改于: 2022-03-11 14:53:25.704000             🧑  作者: Mango
If your img element looks like this,
and SRC is set to a valid resource URI, then
document.getElementById('idToTarget').src = SRC
is how that line would be written.