본문 바로가기

Language & Library/jQuery8

Javascript / jQuery 배열 데이터 타입 받는 법 var obj = new Object();var arr = new Array();obj.id = 'test_1';obj.pw = '123';arr.push(obj); var objA = new Object();var arrA = new Array();objA.id = 'abc';objA.pw = '111';arrA.push(objA);arr.push(arrA); //console.log( 'arr type 1 : ' + typeof(arr)); //object//console.log( 'arr type 2 : ' + $.type(arr)); //array for(var i=0; i 2018. 3. 5.
jquery - trim 공백제거, (html style에서) 공백 제거하지 않는 방법 공백제거 if ($("#id").val().trim().length == 0 ){ alert("공백을 입력 하실 수 없습니다."); } 공백 제거하지 않는 방법 ${fn:escapeXml(list.content)} cf.) 여기서 fn:escapeXml 은 stting에 XML과 HTML에서 특별한 의미를 가진 문자들이 있으면, XML엔티티 코드로 바꿔준뒤 문자열 반환 jstl - fn 종류 참조: http://thatisgood.tistory.com/entry/JSTL-%ED%83%9C%EA%B7%B8-fn-%EC%A2%85%EB%A5%98 2014. 1. 24.
jQuery datepicker 사용하기(다양한 예제) 참조 : http://blog.naver.com/PostView.nhn?blogId=tyboss&logNo=70121820039 2013. 12. 20.
jQuery text, name, select 접근 방법 참조 jQuery text, name, select 접근 방법 참조 : http://javacore.tistory.com/90 2013. 12. 13.
jQuery 배열 선언과 처리 기초 01 결과:naverdaumnate $(document).ready(function(){ //변수 선언 var array = [ { name: 'naver', link: 'http://www.naver.com' }, { name: 'daum', link: 'http://www.daum.net' }, { name: 'nate', link: 'http://www.nate.com' }, ]; $.each(array, function (index, item) { var output = ''; output += ''; output += ' ' + item.name + ''; output += ''; document.body.innerHTML += output; });//each}); 2013. 12. 2.
'위치' 관련 필터 선택자 선택자odd : 홀수 번째에 위치한 문서 객체를 선택even : 짝수 "first : 첫 번째 위치한 문서 객체 "last : 마지막 "eq(n) : n번째 "contains(문자열) : 특정 문자열을 포함하는 "has(h1) : h1 태그를 가지고 있는 "gt(n) : n번째 초과에 위치하는 "it(n) : n번째 미만에 "not(선택자) : 선택자와 일치하지 않는 "nth-child(3n+1) : 3n+1번째 위치하는 " (1,4,7,...) 결과 : Header header2 Apple Banana coconut 이름 성별 주소 나이유재석 남 영등포 40박명수 남 영등포 41김태희 여 강남 30신민아 여 역삼 30 2013. 12. 2.
jquery-spring-mybatis-ajax 1.화면 2.화면 index.jsp spring+mybatis 통합 id : jquery + springmvc+mybatis 주소로 회원검색 address.jsp Insert title here ---- ${address} IDNAMEADDRESS 2013. 5. 14.
jquery function $(document).ready(function( ){ ↑익명함수$("#id").click(function(){ //아이디에 해당하는 이벤트 발생});}); 2013. 5. 10.
반응형