• 구글 계정 로그인

jquery 특정문자 개수

페이지 정보

profile_image
작성자 LJM
댓글 0건 조회 257회 작성일 19-03-18 23:02

본문

 

 var     temp       = "abc대회대회d대회  abc ab abcdefg";

  var     varRegexp      = new RegExp("대회", "ig");

   var     chkTrue       = temp.match(varRegexp);                //배열반환

    alert("varRegexp : "+varRegexp+", chkTrue : "+chkTrue+", chkTrue.length : "+chkTrue.length);


댓글목록

등록된 댓글이 없습니다.