当前位置:网站首页>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 .
边栏推荐
- IdentityServer4入门
- [don't bother to strengthen learning] video notes (II) 2. Write a small example of Q learning
- Un7.22: how to upload videos and pictures simultaneously with the ruoyi framework in idea and vs Code?
- Re6: reading paper licin: a heterogeneous graph based approach for automatic legal stat identification fro
- PHP caching system - PHP uses Memcache
- Re6:读论文 LeSICiN: A Heterogeneous Graph-based Approach for Automatic Legal Statute Identification fro
- What does CRM mean? Three "key points" for CRM management software selection
- One click openstack single point mode environment deployment - preliminary construction
- Makefile variables and dynamic library static library
- MySQL基础篇(一)-- SQL基础
猜你喜欢

数据中台:始于阿里,兴于DaaS

Open source summer interview | learn with problems, Apache dolphin scheduler, Wang Fuzheng

Foreign lead operation takes one month to collect money, and the sideline still needs it

Description of MATLAB functions

Leetcode94 detailed explanation of middle order traversal of binary tree

FreeRTOS - use of software timer

Getting started with web security - open source firewall pfsense installation configuration
![[example of URDF exercise based on ROS] use of four wheeled robot and camera](/img/c5/babce5c6921b9cb54f018dc83a3b87.jpg)
[example of URDF exercise based on ROS] use of four wheeled robot and camera

One click openstack single point mode environment deployment - preliminary construction

【汇编语言实战】(二)、编写一程序计算表达式w=v-(x+y+z-51)的值(含代码、过程截图)
随机推荐
[don't bother to strengthen learning] video notes (II) 2. Write a small example of Q learning
【汇编语言实战】(二)、编写一程序计算表达式w=v-(x+y+z-51)的值(含代码、过程截图)
NVIDIA set persistent mode
Android系统安全 — 5.2-APK V1签名介绍
Problem: filesystemversionexception: you have version null and I want version 8
FreeRTOS - use of software timer
Account 1-2
Detailed LinkedList
【汇编语言实战】一元二次方程ax2+bx+c=0求解(含源码与过程截屏,可修改参数)
SQL server2012 installation method details [easy to understand]
Assignment operator (geritilent software - Jiuye training)
What does CRM mean? Three "key points" for CRM management software selection
[assembly language practice] (II). Write a program to calculate the value of expression w=v- (x+y+z-51) (including code and process screenshots)
Definition and initialization of cv:: mat
With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
Scarcity in Web3: how to become a winner in a decentralized world
Re6: reading paper licin: a heterogeneous graph based approach for automatic legal stat identification fro
Ansible 常用模块介绍
03_ UE4 advanced_ illumination
Li Kou 300 longest increasing subsequence dynamic programming