摘要: 1、先建立一个父组件 parent.vue,定义一个变量和一个数组,把它传递给子组件,代码如下: <template> <view> <testchild :title="title" :array="array" ></testchild> </view> </template> <script> 阅读全文
posted @ 2020-10-30 21:39 凌晨的粥 阅读(1765) 评论(0) 推荐(0)