登录社区云,与社区用户共同成长
邀请您加入社区
Vue两种暴露方法用export default{}export default{name:'student',data(){}}import student from '上面代码所处文件路径'一般用于在js中使用function 动态资源只用export,也叫分别暴露export const a={}export const b={}import {a,b} from '上面代码所处文件路径'一
export default{ name:'student', data(){ } } import student from '上面代码所处文件路径'
一般用于在js中使用function 动态资源
export const a={ } export const b={ } import {a,b} from '上面代码所处文件路径'
一般用于在js中暴露一些静态的资源
Vue社区为您提供最前沿的新闻资讯和知识内容
更多推荐
Mac 使用vscode 创建vue项目后修改文件提示:权限不足,以超级用户身份重试
基于nodejs+vue云计算的城乡医疗卫生服务系统[程序+论文+开题]-计算机毕业设计
ElasticSearch迁移至openGauss
扫一扫分享内容
所有评论(0)