待办清单-无数据库-不能刷新-jq

本文介绍了一个无数据库的待办清单功能实现,包括增加、删除单个和全部待办项以及选中已完成的功能。然而,该实现存在一个缺点:无法在页面刷新后保存清单状态。
摘要由CSDN通过智能技术生成

一. 功能
  1. 增加待办清单
  2. 删除单个待办清单
  3. 删除全部待办清单
  4. 完成清单后选中
二. 缺点
  1. 不能刷新
三. 部分代码
1. CSS代码
*{
   
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
input,textarea,select{
   
	outline: none;
}
.clearfix:after {
   
   content:""; 
   display: block; 
   clear:both; 
}
header{
   
	width: 100%;
	height: 88px;
	background-color: #a7d9ff;
	color: #fff;
	text-align: center;
	line-height: 88px;
	font-size: 36px;
}
.wrap{
   
	width: 96%;
	padding: 0 2%;
	margin: auto;
}
.add{
   
	border-bottom: 1px solid #aaa;
}
.add input,.add i{
   
	display: block;
	float: left;
	height: 100px;
}
.add input{
   
	border: none;
	width: 90%;
	font-size: 32px;
}
.add input::placeholder{
   
	color: #ccc;
}
.add i{
   
	width: 10%;
	font-size: 100px;
	line-height: 100px;
	color: #ccc;
}
.list-item{
   
	border-bottom: 1px solid #ddd;
	height: 150px;
}
.list-item p,.list-item i{
   
	display: block;
	float: left;
	height: 150px;
}
.list-item-checkbox{
   
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值