vue90-使用组件的三个步骤
2024-06-12 09:25:36 阅读次数:49
App,Test,大数据



<template>
<div id="app">
<HelloWorld />
<Test></Test>
</div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
//注册组件
import Test from "./components/Test.vue"
export default {
name: 'App',
components: {
HelloWorld,
Test
}
}
</script>
运行结果

版权声明:本文内容来自第三方投稿或授权转载,原文地址:https://blog.51cto.com/u_15460007/6051199,作者:前端导师歌谣,版权归原作者所有。本网站转在其作品的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如因作品内容、版权等问题需要同本网站联系,请发邮件至ctyunbbs@chinatelecom.cn沟通。
上一篇:jira项目笔记8-json-server模拟数据
下一篇:Vue课程45-事件绑定-v-on指令的简写模式