JS 유효한 값이 널이거나 정의인지 여부를 판정한다

코드에서 :

 if ( some_variable == null ){
   // some_variable is either null or undefined
 }

더 코드 :

if ( !some_variable ) {
  // some_variable is either null, undefined, 0, NaN, false, or an empty string
}
그는 188 원저 출판 · 원의 찬양 (88) · 전망 580 000 +를

추천

출처blog.csdn.net/henryhu712/article/details/103751055