ECMAScript 썸네일형 리스트형 ECMAScript Basics – Syntax 1. Everything is case-sensitive. - Just as with Java, variables, function names, operators, and everything else is case-sensitive, meaning that a variable named test is different from one named Test. 2. Variables are loosely typed. - Unlike Java and C, varibles in ECMAScript are not given a specific type. Instead, each variable is defined using the var operator and can be initalized with any val.. 더보기 숫자, 한글 등 체크하는 스크립트 자바스크립트의 세계도 너무 복잡해... 입력 필드 검사할 때 사용하겠죠... /* 숫자+알파벳 검사 */ function alphanum_check (alphanum){ var pattern = /^[0-9a-zA-Z]*$/; if (pattern.test(alphanum.value)){ return true; }else{ return false; } } /* 알파벳 검사 */ function alpha_check (alpha){ var pattern =/^[A-Za-z]*$/; if (pattern.test(alpha.value)){ return true; }else{ return false; } } /* 숫자 검사 */ function number_check (number){ var pattern =.. 더보기 이전 1 다음