- 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.
推薦閱讀
- Flask Web全棧開(kāi)發(fā)實(shí)戰(zhàn)
- C語(yǔ)言程序設(shè)計(jì)習(xí)題解析與上機(jī)指導(dǎo)(第4版)
- 軟件測(cè)試項(xiàng)目實(shí)戰(zhàn)之性能測(cè)試篇
- Windows Presentation Foundation Development Cookbook
- Hands-On RESTful Web Services with Go
- Building an RPG with Unity 2018
- Android嵌入式系統(tǒng)程序開(kāi)發(fā):基于Cortex-A8(第2版)
- UML2面向?qū)ο蠓治雠c設(shè)計(jì)(第2版)
- 實(shí)戰(zhàn)Python網(wǎng)絡(luò)爬蟲(chóng)
- Python應(yīng)用與實(shí)戰(zhàn)
- Visual C++程序開(kāi)發(fā)范例寶典
- Web程序設(shè)計(jì)與架構(gòu)
- Getting Started with SQL Server 2014 Administration
- Drupal 7 Development by Example Beginner’s Guide
- Python算法設(shè)計(jì)與分析