Vue 1.0 >> 2.0

2018-02-07  本文已影响13人  w_nanan

记录vue认识过程中1.0到2.0不同

<!-- vm.$refs.p will be the DOM node -->
<p ref="p">hello</p>

<!-- vm.$refs.child will be the child comp instance -->
<child-comp ref="child"></child-comp>

this.$refs.p
this.$refs.child

上一篇 下一篇

猜你喜欢

热点阅读