一、定义函数式组件:(MyFunctionalComponent.vue)
二、在其它组件中引入上述函数式组件,并给其传值:
1.在script段里加上:
2.在template段里加上:
wx62e0d796b5814 博主文章分类:Vue ©著作权
一、定义函数式组件:(MyFunctionalComponent.vue)
二、在其它组件中引入上述函数式组件,并给其传值:
1.在script段里加上:
2.在template段里加上:
vue
本文用示例介绍Vue中的函数式组件的用法。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M