書(shū)名: Vue.js 2 Web Development Projects作者名: Guillaume Chau本章字?jǐn)?shù): 65字更新時(shí)間: 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.
推薦閱讀
- Unity 2020 By Example
- Java程序設(shè)計(jì)與開(kāi)發(fā)
- Learning Chef
- MySQL 8從入門(mén)到精通(視頻教學(xué)版)
- Learning Python Design Patterns(Second Edition)
- Visual Basic程序設(shè)計(jì)習(xí)題解答與上機(jī)指導(dǎo)
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)實(shí)例教程
- HDInsight Essentials(Second Edition)
- Android程序設(shè)計(jì)基礎(chǔ)
- Instant Nancy Web Development
- Visual Basic程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)(第二版)
- Python青少年趣味編程
- Windows Phone 8 Game Development
- jQuery技術(shù)內(nèi)幕:深入解析jQuery架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- Getting Started with React VR