• emit形式调用父组件的办法
  • 还能够用$parent.list(1)
//1 父组件<editcomponent ref="edit" @toList="list(1)" ></editcomponent>自定义事件, 事件名为toList//2 子组件 self.$emit('toList');//向父组件emit toList事件