好用的Vue使用Vuex来管理变得更方便
之前也做过redux的练手,花了快4天时间,而且还是懵懵懂懂,不停的参考官方示例,在redux+react的开发中,前者更像主人,react像随从
这个vuex+vue的开发例子只花了大半天的时间,没有查看官方示例,仅仅是看了看API,vuex对于vue来说只是它的插件,没有像redux那样给我一种喧宾夺主的感觉
有了vuex之后,bind对象和emit父级事件的次数几乎降为0,代码更简洁
操作方式:添加之后,双击修改,点击checkbox删除;(未做本地存储和筛选功能)
开发环境:Vue官方vue-cli
注意事项:请关闭上述开发环境中的eslint检查,太严格了,经常让人哭笑不得
-
Notifications
You must be signed in to change notification settings - Fork 0
yuminjustin/Todo-for-Vuex
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Todo-for-Vuex
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published