- Vue.js 2 Web Development Projects
- Guillaume Chau
- 65字
- 2021-07-02 22:34:26
Loading the saved note
Now that we save the note content each time it changes, we will need to restore it when the app is reopened. We will use the localStorage.getItem() API for that. Add the following line at the end of your JavaScript file:
console.log('restored note:', localStorage.getItem('content'))
When you refresh your app, you should see the saved note content printed in the browser console.
推薦閱讀
- 編寫整潔的Python代碼(第2版)
- 數據結構(Python語言描述)(第2版)
- Effective Python Penetration Testing
- Java系統化項目開發教程
- Oracle GoldenGate 12c Implementer's Guide
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- Python預測之美:數據分析與算法實戰(雙色)
- 大話代碼架構:項目實戰版
- 高性能MVVM框架的設計與實現:San
- Swift 2 Blueprints
- Puppet Cookbook(Third Edition)
- jQuery EasyUI從零開始學
- Java性能權威指南
- IBM Cognos TM1 Cookbook
- Java EE企業級應用開發教程:Spring+Spring MVC+MyBatis(第2版)