当前位置:网站首页>Write a simple memo using localstorage
Write a simple memo using localstorage
2022-07-24 09:30:00 【51CTO】
Use html+js Implement a simple memo , Mainly experience localStorage Usage of .
Let's see the renderings first :

Enter text in the input box , Click the save button , The text content will be displayed below ,
Then refresh the browser , You will find that the text content will not be lost , This is because the text content is saved to localStorage It's in ,
It can be understood as saved to the browser Cookie in . Click again " Empty local storage ", You will find that the text below is gone .
--------------------------------------------------------------------------------------
Code :
------------------------------------------------------------------------------------------------------
summary : Simple function , Main experience localStorage Usage of .
Next, I plan to write a beautiful task Kanban and put it on ECS for free trial , Create tasks quickly without logging in ( Browser based Cookie Storage ),
At the same time, it has wechat scanning code login function , The task can be synchronized to the server and saved permanently , You can also export the task list to the local disk with one click .
边栏推荐
- [don't bother to strengthen learning] video notes (IV) 1. What is dqn?
- Nuggets manufacturing industry, digital commerce cloud supply chain collaborative management system to achieve full chain intelligent management and control
- PHP Basics - PHP magic method
- Vscode failed to use SSH Remote Connection (and a collection of other problems)
- [don't bother with reinforcement learning] video notes (I) 3. Why use reinforcement learning?
- [leetcode] 31. Next arrangement
- 我们说的组件自定义事件到底是什么?
- [assembly language practice] (II). Write a program to calculate the value of expression w=v- (x+y+z-51) (including code and process screenshots)
- 配置系统环境变量的时候误删了Path怎么办?
- 科目1-2
猜你喜欢

Six pictures show you why TCP shakes three times?

Linked list - 24. Exchange nodes in the linked list in pairs
![[leetcode] 31. Next arrangement](/img/83/50a3cc17fc252582458bf32d1dd36b.png)
[leetcode] 31. Next arrangement

MySQL基础篇(一)-- SQL基础

Aruba学习笔记06-无线控制AC基础配置(CLI)

Data center: started in Alibaba and started in Daas

Android system security - 5.2-apk V1 signature introduction

【基于ROS的URDF练习实例】四轮机器人与摄像头的使用

JS locate Daquan to get the brother, parent and child elements of the node, including robot instances

排序入门—插入排序和希尔排序
随机推荐
The difference between classification and regression
[MySQL] - deep understanding of index
MySQL基础篇(一)-- SQL基础
详解LinkedList
配置系统环境变量的时候误删了Path怎么办?
Open source summer interview | learn with problems, Apache dolphin scheduler, Wang Fuzheng
Aruba learning notes 06 wireless control AC basic configuration (CLI)
Tang Yudi opencv background modeling
【汇编语言实战】一元二次方程ax2+bx+c=0求解(含源码与过程截屏,可修改参数)
Introduction to common ansible modules
Account 1-2
Vector control of permanent magnet synchronous motor (I) -- mathematical model
What does CRM mean? Three "key points" for CRM management software selection
Leetcode question brushing series -- 174. Dungeon games
[don't bother with reinforcement learning] video notes (I) 2. Summary of reinforcement learning methods
Tiktok's "online celebrity" was poached by Amazon and broadcast on Amazon live platform
如何通过NFT GO,来简要判断、分析NFT市场?
PHP Basics - PHP types
Nuxt 路由切换后 asyncData 跨域报错
We were tossed all night by a Kong performance bug