본문 바로가기

코딩쌀롱

검색하기
코딩쌀롱
프로필사진 이브✱

  • 모든 글 (126)
    • 개발공부 (70)
    • 책 (10)
    • 회고 (43)
      • 하루 기록 (25)
      • 회고 (18)
    • 아무것 (3)
    • 여행 (0)
Guestbook
Recent Posts
Recent Comments
Today
Total
«   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
Archives
Tags
  • array
  • TS
  • 아티클
  • javascript
  • React
  • input
  • 비동기
  • Prototype
  • leetcode
  • bind
  • 회고
  • 링크드 리스트
  • Promise
  • 코어자바스크립트
  • 프로그래머스
  • 생성자
  • closure
  • 알고리즘
  • 코드스쿼드
  • node.js
more
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록쿼리 (1)

코딩쌀롱

2021.5.30(sat)_window.location.search

console.dir(location)해봤을 때. - location.pathname: 요청한 url의 path값 - match.path: 정의한 라우트의 path값 - match.isExact: 요청한 path와 정의한 라우트의 path가 같은지 - location.search: 쿼리 스트링 window.location.search를 queryString.parse에 전달해주면 객체로 만들어준다. location.search하니까 리액트+타입스크립트에서 에러가 나서 window.을 붙여줬더니 해결됐다. import queryString from "query-string"; const MyPageModal = ({ onClick }: Props) => { const query = queryString.p..

회고/하루 기록 2021. 5. 30. 03:50
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바