1.通过new URL创建一个新的连接地址进行引入
new URL('..', import.meta.url).href
import.meta.url
为当前项目根路径
2.import
import xxx from '..'
1.通过new URL创建一个新的连接地址进行引入
new URL('..', import.meta.url).href
import.meta.url
为当前项目根路径
2.import
import xxx from '..'