lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Javascript, jQuery 2016‧05‧03

    jQuery - input과 textarea 글자 입력수 제한

    해외에서 공유된 코드이다. 원문 : http://www.scriptiny.com/2012/09/jquery-input-textarea-limiter/ (function($) { $.fn.extend( { limiter: function(limit, elem) { $(this).on("keyup focus", function() { setCount(this, elem); }); function setCount(src, elem) { var chars = src.value.length; if (chars > limit) { src.value = src.value.substr(0, limit); chars = limit; } elem.html( limit - chars ); } setCount($(this)[0], elem); } }); })(jQuery);  이렇게 플러그인으로 […]

  • Javascript, jQuery 2015‧08‧10

    자바스크립트 - 객체안에 값이 있는지 여부

    var A = {}; 라는 객체에 있는지 없는지 여부를 length 로 사용해서 조건문을 만들게 되는데 A.length > 0  이렇게 바로 객체의 길이를 요청하면 에러가 난다. Object.keys(A).length > 0  이 처럼 길이를 요청하면 된다.  

popular

  • jQuery - 선택자 삭제 .remove
  • JS - 모바일 접속 체크
  • 가로 모드(또는 세로 모드)로 가는 회전 막기
  • 구글 통계 - 캠페인 url 만들기
  • jQuery-div 높이를 창의 100%로 조절할 때 (창 사이즈 유동 적응)
  • 리액트에서 리스트 반복으로 버튼 만들 때 .map()
  • CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server.
  • audio context 볼륨 조절하기
  • 관리자 페이지 중 위젯에서 드래그 & 드롭이 안되는 현상
  • 안드로이드 스튜디오에 모듈,라이브러리 추가하기

comment

  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...
  • 유용한정보 대단히 감사합니다....