본문 바로가기 메뉴 바로가기

정훈's 프로그래밍

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

정훈's 프로그래밍

검색하기 폼
  • 😍 Jeong Hun.Story (1133)
    • Back End (156)
      • 🍀 Spring Boot (22)
      • ☠️ Java (62)
      • 🌈 .NET MVC (56)
      • 😀 .NET Core Blazor (13)
      • 🥧 Python (3)
    • Front End (79)
      • 🤢 Next.js (15)
      • 😤 React (12)
      • 🌈 Html (7)
      • 🌈 JavaScript (44)
    • deploy (6)
      • 💾 Github (1)
      • 🐳 Docker (5)
    • RDBMS (44)
      • Prisma (6)
      • SQL (4)
      • 🌈 MsSql (34)
    • Mobile (29)
      • 📱 SwiftUI (29)
    • 정보 보관 ver1.0 (747)
  • 방명록

Front End/🌈 JavaScript (44)
Destructuring assignment

Destructuring assignment(구조 분할 활당)let a, b, rest;[a, b] = [10, 20];console.log(a);// Expected output: 10console.log(b);// Expected output: 20[a, b, ...rest] = [10, 20, 30, 40, 50];console.log(rest);// Expected output: Array [30, 40, 50]

Front End/🌈 JavaScript 2024. 11. 30. 15:36
Number 객체

console.log(Number(100));// > 100console.log(Number("100"));// > 100console.log(Number(""));// > 0console.log(Number("test"));// > NaNconsole.log(isNaN(Number("test")));// > trueconsole.log(isNaN(Number("test")) ? 0 : Number(100));> 0

Front End/🌈 JavaScript 2024. 7. 4. 16:31
[선택자] & find & each

// 선택자 하위 요소 중 특정 요소를 모두 검색 한다.$(container_id).find("[bind]").each(function () { console.log($(this));}

Front End/🌈 JavaScript 2024. 5. 28. 09:47
천단위 표기 및 컴마 제거

천단위 별로 컴마(comma)를 추가한다. return type = string String.prototype.setComma = function () { return isNaN(Number(this)) ? "0" : Number(this).toLocaleString("ko-KR"); } console.log("100000".setComma()); // > "100,000" Number.prototype.setComma = function () { return isNaN(Number(this)) ? "0" : Number(this).toLocaleString("ko-KR"); } console.log((100000000).setComma()); // > "100,000,000" 컴마(comma)를 제거한..

Front End/🌈 JavaScript 2024. 4. 15. 14:10
text box 입력시 label text 위치 변경하기

CSS HTML KRW Javascript var Page = { onBlur: function (placeholder_id, object) { const placeholder = document.getElementById(placeholder_id); if (object.value.trim() === '') { placeholder.classList.remove('focused'); placeholder.classList.add('blured'); } }, onFocus: function (placeholder_id) { const placeholder = document.getElementById(placeholder_id); placeholder.classList.add('focused'); pla..

Front End/🌈 JavaScript 2024. 4. 12. 11:56
날짜와 관련된 함수

Date.now() 메소드는 UTC 기준으로 1970년 1월 1일 0시 0분 0초부터 현재까지 경과된 밀리초를 반환합니다. console.log(Date.now()); // 1711935339429 Date.toDateString() 메소드는 주어진 날짜를 현지 시간대로 해석하고 그 중 날짜 부분만 표시하는 문자열을 반환합니다. const currentDateOnly = new Date().toDateString(); console.log(currentDateOnly); // "Mon Apr 01 2024" Date.toLocaleDateString() 메소드는 지역화된 날짜 정보를 문자열로 반환합니다. const currentDate = new Date().toLocaleString(); console..

Front End/🌈 JavaScript 2024. 4. 1. 10:17
Javascript의 replace는 다르다.

console.log("1,000,000".replace(',', '')) > "1000,000" console.log("1,000,000".replace(/,/g, '')) > "1000000"

Front End/🌈 JavaScript 2024. 3. 28. 10:06
attr() VS prop() 차이점 및 사용

attr() 1. HTML 요소의 모든 속성(attribute)에 대해 작동합니다. 예를 들어, href, src, title 등과 같은 HTML 속성을 조작하는 데 사용됩니다. HTML 속성의 값을 항상 문자열(string)로 반환합니다. 링크 prop() 주로 요소의 상태를 나타내는 속성(property)에 대해 작동합니다. 예를 들어, checked, disabled, selected와 같은 프로퍼티를 조작하는 데 사용됩니다. 프로퍼티의 값은 보통 부울(boolean)이거나 숫자(number)일 수 있습니다. 예를 들어, checked 프로퍼티는 체크박스의 체크 여부를 나타내는 부울값을 가집니다. 체크박스

Front End/🌈 JavaScript 2024. 3. 7. 14:24
disabled 설정

// check box $("#n_picking_free_quantity").attr('disabled', true); // radio box $("#n_picking_free_quantity").prop('checked', false); // input $("#n_picking_free_quantity").attr("disabled", false);

Front End/🌈 JavaScript 2024. 1. 25. 09:59
버튼에 체크 박스를 추가한 스타일

.check-button { display: inline-block; width: 20px; height: 20px; background-color: #ddd; border-radius: 50%; cursor: pointer; vertical-align: middle; } .check-button:checked { background-color: #007bff; } .button { background-color: #007bff; color: white; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; border-radius: 5px; cursor: pointer; v..

Front End/🌈 JavaScript 2024. 1. 4. 15:26
이전 1 2 3 4 5 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • JangJeongHunWorld
  • 닥터슬랭
TAG
  • 메이븐(maven)
  • 스프링 프레임워크(spring framewordk)
  • 표현 언어(expression language)
  • System.Diagnostics
  • error-java
  • 인텔리제이(intellij)
  • await
  • 문자 자르기
  • 스프링 시큐리티(spring security)-http basic 인증
  • nl2br
  • java-개발 환경 설정하기
  • 람다식(lambda expression)
  • 스프링 프레임워크(spring framework)
  • 스프링 시큐리티(spring security)
  • React
  • 제품 등록
  • 진수 변환
  • MainActor
  • docker
  • jsp 오픈 소스
  • java web-mvc
  • system.io
  • 특정 문자를 기준으로 자르기
  • jstl(java standard tag library)-core
  • In App Purchase
  • java 키워드 정리
  • .submit()
  • java.sql
  • REST API
  • jstl(java standard tag library)
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바