vue数据双向绑定的实现原理 2018-08-03 本文已影响0人 hudaren vue是通过Object.defineProperty()来劫持各个属性的setter,getter,在数据变动时发布消息给订阅者,触发相应的监听回调。