1、在js或vue文件中以import 'xx/xx/xx.js'或import 'xx/xx/xx.css'方式引入,
会在当前window域下作用
2、在js或vue文件中以import js from 'xx/xx/xx.js'方式引入,
会在当前模块域下作用
3、在vue文件中,<style lang="scss" scope>标签下,以@import "xx/xx/xx.scss"方式引入,
会在当前scope域下作用
标签:中以,vue,作用域,js,xx,引入,import
来源: https://www.cnblogs.com/linding/p/14985533.html