我尝试了一些代码..
function loadImages() {
var img = document.createElement("img");
img.src = "/images/answers/${record1.answer_id}.png";
img.id = "answer_id";
}
function removeFile(){
var elements = document.getElementsById('/images/answers/${record1.answer_id}.png').document.getElementsByTagName('img');
}