<스크립트> function fileChange(obj) { var url = obj.value url = "file:///" url.replace("\",'/'); 경고(url); document.getElementById("img1").src= url; } 关键是:url = "file:///" url.replace("\",'/');