당신을 다른 사람과 비교하지 말고, 오직 어제의 당신하고만 비교하라.
close
프로필 배경
프로필 로고

당신을 다른 사람과 비교하지 말고, 오직 어제의 당신하고만 비교하라.

    • 전체글 (92)
      • 서울살이 정보 (6)
      • Programming (64)
        • spring (7)
        • java (10)
        • DB (1)
        • javascript (4)
        • react (10)
        • error (7)
        • toy_project (12)
        • trouble_shooting (11)
      • it 지식, 정보 (20)
  • mode_edit_outline글작성
  • settings환경설정
  • 홈
  • 태그
  • 방명록
  • 글쓰기
  • 관리
  • 로그인
javascript ?. Optional chaining

javascript ?. Optional chaining

언제? 존재하지 않는 메서드를 호출 할때 사용할 수 있다. const str = null; console.log(str?.indexOf('a')); //undefined 에러를 리턴하는 대신 undefined를 리턴한다. ?.를 사용하지 않았을때 const str = null; if(str.indexOf('a') > 0){ console.log('얏호'); }else{ console.log('유후'); } "TypeError: Cannot read properties of null (reading 'indexOf') at decujogaba.js:3:8 at https://static.jsbin.com/js/prod/runner-4.1.8.min.js:1:13924 at https://static.jsb..

  • format_list_bulleted Programming/javascript
  • · 2023. 12. 29.
  • textsms
form.serialize() 할때 trim() 공백제거 사용

form.serialize() 할때 trim() 공백제거 사용

이게 제일 간편하다. serialize() 함수 사용하기 전에 전체적으로 trim 없애주기 $('input, textarea').each(function(){ $(this).val(jQuery.trim($(this).val())); }); 출처 https://stackoverflow.com/questions/218794/is-there-a-way-to-use-jquerys-serialize-form-fields-and-trim-the-value-in-the-f Is there a way to use jQuery's serialize form fields and trim the value in the fields? I have a form that uses jQuery to submit an ajax po..

  • format_list_bulleted Programming/javascript
  • · 2023. 2. 24.
  • textsms
[jQuery] $.extend란?

[jQuery] $.extend란?

프로젝트를 하면서 처음 안 기능! 그건 바로 $.extends 이다. JQuery 공식문서에서는 다음 기능을 "둘 이상의 개체 내용을 첫번째 개체로 병합합니다."라고 소개한다. jQuery.extend( target, object1 [, objectN ] ) 예시를 살펴보자. var object1 = { apple: 0, banana: { weight: 52, price: 100 }, cherry: 97 }; var object2 = { banana: { price: 200 }, durian: 100 }; // Merge object2 into object1 var result = $.extend( object1, object2 ); console.log("결과: " + JSON.stringify( re..

  • format_list_bulleted Programming/javascript
  • · 2022. 1. 28.
  • textsms
자바스크립트에서 엑셀 함수 사용하기 fomula.js

자바스크립트에서 엑셀 함수 사용하기 fomula.js

https://formulajs.info/ Formula.js Community built JavaScript implementation of most Microsoft Excel formula functions. formulajs.info js 파일을 다운받고 프로젝트에 넣어주면 함수를 사용할 수 있다. functions를 보면 다양한 함수들이 제공되고 있다. 경로를 추가해준다. ​ 함수를 사용할 땐 formulajs.PMT(0.1/12, 2*12, 100000, 1000000, 0) 이런식으로 앞에 [ formulajs. ]을 붙이고 마침표 뒤에 사용하려는 함수를 쓰면 된다!

  • format_list_bulleted Programming/javascript
  • · 2021. 10. 12.
  • textsms
  • 1
반응형
공지사항
  • 前 블로그
카테고리
  • 전체글 (92)
    • 서울살이 정보 (6)
    • Programming (64)
      • spring (7)
      • java (10)
      • DB (1)
      • javascript (4)
      • react (10)
      • error (7)
      • toy_project (12)
      • trouble_shooting (11)
    • it 지식, 정보 (20)
최근 글
인기 글
최근 댓글
태그
  • #챗gpt사용
  • #리액트
  • #챗gpt용량
  • #mybatis비교연산자처리
  • #ChatGPT
  • #챗gpt
  • #평생교육바우처온라인발급
  • #mac이클립스
  • #정보처리기사
  • #자격증
전체 방문자
오늘
어제
전체
250x250
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바