一.Vue中父组件向子组件传值
利用v-bind向子组件传值,子组件中利用props接受
<div id=app>
<father></father>
</div>
<template id=father>
<div>
<!--注意点: 组件是可以使用自己的数据的-->
<p>{{name}}</p>
<p>{{age}}</p>
<!--这里将父组件的name通过parentname传递给了子组件-->
<son parentname=name abc=age></son>
</div>
</template>
<t