[Javascript] undefined check

2015. 2. 25. 12:23프로그래밍/Javascript & JQuery

undefined 값 체크 하는 방법


if(typeof 변수 != "undefined"){

doSomething();

}