当前位置:网站首页>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 .
边栏推荐
- Makefile variables and dynamic library static library
- (5) Cloud integrated gateway gateway +swagger documentation tool
- A null pointer exception is reported when the wrapper class inserts into the empty field of the database table
- Firewalld firewall related commands
- PHP Basics - PHP types
- 【汇编语言实战】一元二次方程ax2+bx+c=0求解(含源码与过程截屏,可修改参数)
- js定位大全获取节点的兄弟,父级,子级元素含robot实例
- Getting started with web security - open source firewall pfsense installation configuration
- MySQL基础篇(一)-- SQL基础
- gnuplot软件学习笔记
猜你喜欢

TCP triple handshake connection combing
![[assembly language practice] solve the unary quadratic equation ax2+bx+c=0 (including source code and process screenshots, parameters can be modified)](/img/5e/782e5c33accc455994aae044970431.png)
[assembly language practice] solve the unary quadratic equation ax2+bx+c=0 (including source code and process screenshots, parameters can be modified)

Code random notes_ Linked list_ Turn over the linked list in groups of 25K

Hands on deep learning (VII) -- bounding box and anchor box

详解LinkedList

配置系统环境变量的时候误删了Path怎么办?
![[don't bother with reinforcement learning] video notes (I) 3. Why use reinforcement learning?](/img/57/0ebff0839d2a2898472d3270fd13df.png)
[don't bother with reinforcement learning] video notes (I) 3. Why use reinforcement learning?
![[don't bother to strengthen learning] video notes (II) 2. Write a small example of Q learning](/img/b1/d5c869bc68ba273be2030202f94a55.png)
[don't bother to strengthen learning] video notes (II) 2. Write a small example of Q learning

The next stop of data visualization platform | gifts from domestic open source data visualization datart "super iron powder"

Android system security - 5.2-apk V1 signature introduction
随机推荐
One click openstack single point mode environment deployment - preliminary construction
Detailed explanation of the whole process of R & D demand splitting | agile practice
[don't bother to strengthen learning] video notes (IV) 2. Dqn realizes maze walking
配置系统环境变量的时候误删了Path怎么办?
Lung CT segmentation challenge 2017 dataset download and description
获取所有股票历史行情数据
Android系统安全 — 5.2-APK V1签名介绍
What is the component customization event we are talking about?
Foreign lead operation takes one month to collect money, and the sideline still needs it
Getting started with sorting - insert sorting and Hill sorting
Asyncdata cross domain error after nuxt route switching
Detailed LinkedList
TiFlash 源码阅读(五) DeltaTree 存储引擎设计及实现分析 - Part 2
What are the 6% annualized products?
gnuplot软件学习笔记
[assembly language practice] solve the unary quadratic equation ax2+bx+c=0 (including source code and process screenshots, parameters can be modified)
Assignment operator (geritilent software - Jiuye training)
Tiflash source code reading (V) deltatree storage engine design and implementation analysis - Part 2
Firewalld firewall related commands
CodeBlocks shortcut key operation Xiaoquan