子组件中写:
this.$emit('RowCount',res.data.RowCount);
父组件中写:
getMFGLRowCount(val){ //父组件中的方法: 接收子组件传过来的参数值赋值给父组件的变量 //this.totalCount = val; alert("这是父组件 methods 中的方法,接收的子组件的值为:"+val); }
京公网安备 11010502049817号