업로드중인 파일에 응답하는 PHP 스크립트가 있습니다. 이 응답을 '에코'하고 싶지만 작동시키지 못합니다.인쇄용 자바 스크립트 응답
아래 스크립트에서 볼 수 있듯이 나는 '응답'을 사용했습니다. 아무 것도 생각할 수 없었기 때문입니다. 이게 어떻게 작동합니까?
success:function(response){
if(response == 6563){
var uploaddiv = document.getElementById('uploadattachment');
uploaddiv.innerHTML = '<center><br><br><span style="font-size:18px; color:green;">File has successfully been uploaded.</span><br>You can now click this window away or upload another file</center>';
} else {
var uploaddiv = document.getElementById('uploadattachment');
uploaddiv.innerHTML = '<center><br><br><span style="font-size:18px; color:red;">Oops, something went wrong</span><br>' response '</center>';
}
부수적으로,