vue子组件向父组件传值

   子组件使用

  fun(){

    this.$emit("传值名称", this.nav_pitch);

  }

      
  父组件
  @传值名称="fun()"
 
  fun(e){
    console.log(e)    接受参数
  }
  
posted @ 2021-02-26 15:31  web格调  阅读(57)  评论(0编辑  收藏  举报