- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 124字
- 2021-07-02 19:57:15
Vuex
Vuex provides a powerful way to manage the data of an application as the complexity of the UI increases, by centralizing the application's data into a single store.
We can get snapshots of the application's state by inspecting the store in Vue Devtools:

Figure 1.2. Vue Devtools Vuex tab
The left column tracks changes made to the application data. For example, say the user saves or unsaves an item. You might name this eventtoggleSaved. Vue Devtools lets you see the particulars of this event as it occurs.
We can also revert to any previous state of the data without having to touch the code or reload the page. This function, calledTime Travel Debugging, is something you'll find very useful for debugging complex UIs.
推薦閱讀
- Qt 5 and OpenCV 4 Computer Vision Projects
- arc42 by Example
- JMeter 性能測試實戰(zhàn)(第2版)
- HTML5 Mobile Development Cookbook
- RTC程序設(shè)計:實時音視頻權(quán)威指南
- Hands-On JavaScript High Performance
- JS全書:JavaScript Web前端開發(fā)指南
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實訓版)
- Laravel Application Development Blueprints
- Tableau Desktop可視化高級應(yīng)用
- UI設(shè)計基礎(chǔ)培訓教程(全彩版)
- 產(chǎn)品架構(gòu)評估原理與方法
- 創(chuàng)新工場講AI課:從知識到實踐
- KnockoutJS Blueprints
- Python程序設(shè)計案例教程:從入門到機器學習(微課版)