想将父作用域的值传入,子组件需要在子组件定义'props',用来接受父组件传来的值。 ... 官网的案例: Vue.component('my-component', { props: { // 基础的类型 ...
確定! 回上一頁