- 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.
推薦閱讀
- Learning Python Web Penetration Testing
- 圖解Java數據結構與算法(微課視頻版)
- Cocos2d-x游戲開發(fā):手把手教你Lua語言的編程方法
- Python數據分析(第2版)
- Java設計模式及實踐
- Mathematica Data Analysis
- Multithreading in C# 5.0 Cookbook
- Android玩家必備
- 0 bug:C/C++商用工程之道
- Python數據可視化之美:專業(yè)圖表繪制指南(全彩)
- Visual Basic程序設計實驗指導及考試指南
- 實驗編程:PsychoPy從入門到精通
- 用Python動手學統(tǒng)計學
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實踐
- Flutter之旅