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 - parseJSON에서 Uncaught SyntaxError: Unexpected token 오류날 때
  • [25년12월 5일 ] react next.js 취약점 발견, 해킹 공격 피해 사례, 코인 채굴 악성 코드
  • 포토샵 CS3가 실행중이면 ESC 키가 작동하지 않는 버그 고치기
  • 안드로이드 프로젝트 안에 미디어 파일을 넣고 경로 불러오기
  • 키보드 키 코드
  • 워드프레스 블로그와 페이스북 페이지 게시물 연동!
  • react native - TabNavigator 에서 탭해서 이동했을 때 컴포넌트 새로고침
  • 무료 UI kit 다운로드
  • Command 'pm2' not found / 502 Bad Gateway
  • 각 카테고리별로 노출되는 포스트 갯수 설정하기

comment

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