문자열 포함 함수

javascript 2015. 9. 22. 16:20

if(tmp.match("abc")){

console.log(222);

}

else{

console.log(3333);

}


문제가 되는경우 

Null Validation - Uncaught TypeError: Cannot read property 'match' of undefined.


Posted by 이상욱1
,