.sync是一个语法糖,是父组件监听子组件更新某个props的请求的缩写语法
:money.sync ="total"等价于
:money = "total" v-on:update:money="total =$event"
二、$emit
.sync 和 $emit
原文:https://www.cnblogs.com/bindy-totoro/p/15099615.html