1.methods:
监听click事件
methods:{
clickFunction:function(){
}
}
2.mounted:
页面初始化方法
mounted(){
}
执行顺序是子组件---父组件
3.props:
接收来自父组件的数据
props: {
seller: {
type: Object
}
}
4.$emit 向父组件传值
this.$emit('showCityName',data);
触发父组件的showCItyName事件。