기록

  • 홈
  • 태그
  • 방명록

vue 모듈화 1

[Vue.js] 모듈화

아래 코드에서 common.js와 common2.js를 모듈화 import common from '@/assets/js/common.js'; import common2 from '@/assets/js/common2.js'; export default { name: 'HelloWorld', props: { msg: String }, methods: { method1() { common.method1(); }, method2() { common2.method2(); } } } 1. Webpack 사용하기 Webpack은 대표적인 모듈 번들러로서, 모듈의 종속성을 분석하고 묶어서 하나의 파일로 만들어 줍니다. 이를 사용하면 여러 개의 모듈을 하나의 파일로 번들링할 수 있습니다. 예를 들어, common.js와..

Frontend/vue3 2023.03.08
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (273)
    • Frontend (102)
      • javaScript (29)
      • react (30)
      • vue3 (24)
      • angularjs (2)
      • jquery (4)
      • html (4)
      • css (3)
      • HTTP 통신 (6)
    • gridLib (24)
      • auiGrid (2)
      • agGrid (7)
      • jqGrid (15)
    • Backend (57)
      • JAVA (22)
      • spring (23)
      • spring cloud (MSA) (10)
      • tomcat (2)
    • SQL (19)
      • RDBMS (14)
      • NoSQL (4)
    • python (1)
    • study (42)
      • 클라우드&쿠버네티스 (7)
      • 보안 (6)
      • 알고리즘 문제 풀이 (28)
      • 독서 (0)
      • 네트워크 (1)
    • tool (6)
      • git (5)
    • error (10)
    • 트러블슈팅 (1)

Tag

JavaScript, error, mybatis, 프로그래머스 정렬, 2024 데브크루, JWT, 프로그래머스 dfs bfs, jqgrid, 프로그래머스, mapper, 백준, softeer, dfs bfs, Python, KINX, Spring Security, BFS, dfs, vue emit, MSA,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Copyright © Kakao Corp. All rights reserved.

티스토리툴바