官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 五寨县| 阜平县| 嵩明县| 灌南县| 贵溪市| 大冶市| 云龙县| 都匀市| 南开区| 鲁山县| 海兴县| 邵武市| 淮北市| 黄龙县| 锦屏县| 南靖县| 扶风县| 安顺市| 布拖县| 万盛区| 塘沽区| 射洪县| 龙里县| 柘城县| 莱西市| 桦南县| 仙游县| 兴宁市| 依兰县| 吐鲁番市| 文安县| 丰原市| 武宁县| 湛江市| 剑阁县| 隆林| 调兵山市| 噶尔县| 晋宁县| 获嘉县| 阿鲁科尔沁旗|