0
리디렉션하려는 경우 여기서은 항상 udefined입니다. 그러나 예를 들어, 해당 변수를 alert();
에 넣으면 정확한 숫자가 표시됩니다.javascript 변수는 항상 정의되지 않음
코드
var where = msg.txt;
window.location = "/page.php?id=".where; //this redirects to /page.php?id=undefined
alert(where); //it show correct number