[JavaScript] undefined check.

ITWeb/개발일반 2013. 5. 15. 18:55


if ( typeof obj === "undefined" ) {

}


if ( obj === undefined ) {

}


요렇게 하셔야 합니다.

: