网站首页 > 基础教程 正文
这里运用到的技术:
1、localStorage 保存数据到浏览器,和从浏览器中localStorage取到数据
2、JSON.stringify()方法和JSON.parse()方法的运用
3、setSelectionRange()方法
4、数组的prop添加内容,splice(i,1) 删除和替换splice(i,0,'aa')
5、attr()和prop()
6、on 绑定事件
html:
<header>
<section>
<label for="title">简易记事簿</label>
<input type="text" id="title" placeholder="添加备忘录">
</section>
</header>
<section>
<h2>正在进行</h2> <span id='dolist'>0</span>
<ol>
</ol>
<h2>已经完成</h2> <span id='donelist'>0</span>
<ul></ul>
</section>
css :
body{
margin: 0;
padding: 0;
font-size: 14px;
background-color: silver;
}
header{
height: 50px;
background-color: #3b3b3b;
}
section{
width: 500px;
margin: 0 auto;
}
label{
color: #fff;
font-size: 20px;
line-height: 50px;
}
#title{
wi
- 上一篇: 一波Ts 基础大全;领先同事的机会来了
- 下一篇: 全新web前端开发教程之Jquery事件
猜你喜欢
- 2024-11-25 React 与 虚拟DOM
- 2024-11-25 Vue 的这5个技巧,可以大大提高我们的构建体验
- 2024-11-25 全新web前端开发教程之Jquery事件
- 2024-11-25 一波Ts 基础大全;领先同事的机会来了
- 2024-11-25 Python教程:报表和日志精讲
- 2024-11-25 「jQuery-3」 获取和设置标签元素
- 2024-11-25 jq中attr 设置checkbox 选中状态中的坑
- 2024-11-25 「B/S端开发」DevExtreme初级入门教程 - 支持TypeScript
- 2024-11-25 jquery常用基础方法
- 2024-11-25 SpringBoot学习笔记八之Admin分配角色权限
- 06-09Socioeconomic growth goals high on meetings' agenda
- 06-09Cities Along Middle Reaches of Yangtze River Agree on 63 Cooperation Items
- 06-09Scientists to make flag flutter on moon
- 06-09CBN丨Foreign-funded institutions bullish on Chinese assets
- 06-09Full Text: Joint Statement between the People's Republic of China and the French Republic on Climate Change on the occasion of the Tenth Anniversary of the Paris Agreement
- 06-092022年底总结,温暖和激励自己的文案
- 06-09百度实时推送代码解决方案(百度实时推送工具)
- 06-09PHP漏洞之跨网站请求伪造(php跨站脚本攻击)
- 最近发表
-
- Socioeconomic growth goals high on meetings' agenda
- Cities Along Middle Reaches of Yangtze River Agree on 63 Cooperation Items
- Scientists to make flag flutter on moon
- CBN丨Foreign-funded institutions bullish on Chinese assets
- Full Text: Joint Statement between the People's Republic of China and the French Republic on Climate Change on the occasion of the Tenth Anniversary of the Paris Agreement
- 2022年底总结,温暖和激励自己的文案
- 百度实时推送代码解决方案(百度实时推送工具)
- PHP漏洞之跨网站请求伪造(php跨站脚本攻击)
- ThinkPHP后台入口地址查找(thinkphp build.php)
- PHP新手如何提高代码质量(php新手如何提高代码质量的方法)
- 标签列表
-
- jsp (69)
- gitpush (78)
- gitreset (66)
- python字典 (67)
- dockercp (63)
- gitclone命令 (63)
- dockersave (62)
- linux命令大全 (65)
- pythonif (86)
- location.href (69)
- dockerexec (65)
- tail-f (79)
- queryselectorall (63)
- location.search (79)
- bootstrap教程 (74)
- deletesql (62)
- linuxgzip (68)
- 字符串连接 (73)
- html标签 (69)
- c++初始化列表 (64)
- mysqlinnodbmyisam区别 (63)
- arraylistadd (66)
- mysqldatesub函数 (63)
- window10java环境变量设置 (66)
- c++虚函数和纯虚函数的区别 (66)