首先在script中引用组件
import footncf from "./FootNcf";
在script中到模块中创建模块
components:{
footncf,
},
在页面需要渲染此组件到地方写入标签
<footncf></footncf>
首先在script中引用组件
import footncf from "./FootNcf";
在script中到模块中创建模块
components:{
footncf,
},
在页面需要渲染此组件到地方写入标签
<footncf></footncf>
本文标题:页面使用组件方法
本文链接:https://www.haomeiwen.com/subject/gsvxrxtx.html
网友评论