43

7个有用的Vue开发技巧

 4 years ago
source link: https://juejin.im/post/5ce3b519f265da1bb31c0d5f
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.
1 状态共享 随着组件的细化,就会遇到多组件状态共享的情况,Vuex当然可以解决这类问题,不过就像Vuex官方文档所说的,如果应用不够大,为避免代码繁琐冗余,最好不要使用它,今天我们介绍的是vue.js 2.6新增加的Observable API ,通过使用这

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK