58

Vue还有这种骚操作?浅析几个新手常常忽略的API

 6 years ago
source link: https://juejin.im/post/5adc99f56fb9a07abd0d3ee7
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一:实现子组件与父组件双向绑定的【sync】修饰符:一般来说,我们实现父子组件值的传递通常使用的是【props】和自定义事件【$emit】。父组件通过【props】将值传给子组件,子组件通过【$emit】将值传给父组件,父组件通过【$on】事件获取子组件传过来

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK