quasar2 에서 텍스트파일을 import 하기

JaeKwon Jin·2023년 7월 4일

Quasar2

목록 보기
3/6
import hello_world_c from '../hello_world/hello_world_c.txt'

위와 같이 하면 hello_world_c 변수에
경로명이 들어온다.

이걸 저 파일의 텍스트 내용으로 하고 싶으면

아래와 같이 ?raw를 경로명 뒤에 붙인다.

import hello_world_c from '../hello_world/hello_world_c.txt?raw'
profile
중년개발자

0개의 댓글