본문 바로가기

개발쬬

검색하기
개발쬬
프로필사진 Joooooooo

  • 분류 전체보기 (83)
    • 쬬의 기초정리 (13)
    • 쬬는 개발중 (36)
    • 쬬의 Vue (12)
    • 쬬의 React (14)
    • 쬬의 CSS (6)
    • 설정 (0)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
  • 내 벨로그
«   2025/08   »
일 월 화 수 목 금 토
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
Tags
  • CSS
  • form
  • antd
  • type
  • vscode
  • vue-cli-service
  • Package
  • useState
  • develop
  • 시멘틱태그
  • react
  • axios
  • 상태관리
  • error
  • 리액트기초
  • TradingVIew
  • Download
  • 프론트엔드
  • npm
  • 이미지
  • NeXT
  • JavaScript
  • 프론트엔드개발
  • err
  • FRONT
  • VUE
  • components
  • frontend
  • 리액트
  • Chart
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Web (1)

개발쬬

[Vue] 모바일/웹 분기설정 정규식예제

환경 : Vue2 + vue-router@3.5.4 + vuex@3 main.js const isMobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ? true : false; //전역설정 Object.defineProperty(Vue.prototype, "$isMobileDevice", { value: isMobileDevice, }); //this.$isMobileDevice 로 활용이 가능하다 Test.vue if (this.$isMobileDevice === true) { url = res.data.mobile_url; } else { url = res.da..

쬬의 Vue 2022. 8. 17. 16:25
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바