본문 바로가기

rhanziy

검색하기
rhanziy
프로필사진 rhanziy

  • 분류 전체보기 (170)
    • git (3)
    • Html_css_js (55)
    • React (25)
    • React Native (20)
    • Next.js (13)
    • Node.js (12)
    • Java (22)
    • Development setting (7)
    • study (9)
    • doodle (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
Tags
  • async
  • generic
  • 슬라이딩윈도우
  • 페이지네이션
  • react
  • codepush
  • code-push-standalone
  • app.post
  • 상속
  • javascript
  • meatadata
  • 스크롤이벤트
  • Spring
  • reactnative
  • 이진탐색
  • set
  • map
  • xlsx-js-style
  • 코드푸시
  • TS
  • Next.js
  • supabase auth
  • 타입스크립트
  • array
  • supabase authentication
  • extends
  • Filter
  • interface
  • 글또10기x코드트리
  • supabase 페이지네이션
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록setItem (1)

rhanziy

JS - localStorage로 장바구니 기능 구현하기(+중복제거)

var products = [ { id: 0, price: 70000, title: 'Blossom Dress' }, { id: 1, price: 50000, title: 'Springfield Shirt' }, { id: 2, price: 60000, title: 'Black Monastery' } ] // 데이터 형식 function addTemplet(data){ data.forEach((e)=>{ var card = ` ${e.title} 가격 : ${e.price} 구매 ` $('.row').append(card); }) } // 데이터에 맞게 카드형식으로 html append 우선 데이터를 카드 식으로 화면에 뿌려준다. $('.buy').click(function(e){ var title = ..

Html_css_js 2022. 11. 10. 14:11
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바