jquery节点的增删改查 数据存储到本地缓存

本文详细讲解了如何使用jQuery进行DOM节点的增删改查操作,并探讨了如何将数据存储到本地缓存中,实现数据持久化。通过实例代码,深入理解jQuery在页面元素操作和本地存储中的应用。
摘要由CSDN通过智能技术生成
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
				list-style: none;
			}
			
			.main {
				width: 800px;
				margin: 0 auto;
			}
			
			.main input:nth-of-type(2) {
				text-align: center;
				width: 60px;
			}
			
			.ul {
				width: 800px;
				display: flex;
			}
			
			.ul>li {
				font-weight: bold;
				width: 200px;
				height: 30px;
				text-align: center;
				border: 1px solid #2C323B;
				border-left: none;
				line-height: 30px;
			}
			
			.ul li:first-child {
				width: 30px;
				border-left: 1px solid #2C323B;
			}
			
			.arul {
				width: 800px;
				display: flex;
			}
			
			.arul>li {
				width: 197px;
				height: 30px;
				padding-left: 3px;
				border: 1px solid #2C323B;
				border-left: none;
				line-height: 30px;
			}
			
			.arul li:first-child {
				width: 26px;
				border-left: 1px solid #2C323B;
			}
			
			.box {
				width: 100%;
				height: 100%;
				position: fixed;
				top: 0;
				left: 0;
				bottom: 0;
				right: 0;
				margin: auto;
				background-color: rgba(50, 50, 50, 0.6);
				display: none;
			}
			
			.ceten {
				width: 500px;
				height: 140px;
				top: 0;
				left: 0;
				bottom: 0;
				right: 0;
				margin: auto;
				position: fixed;
				border: 1px solid gray;
				background-color: white;
			}
			
			.xiu,
			.remove {
				cursor: pointer;
				color: blue;
			}
			
			.tul {
				width: 450px;
				margin: 0 auto;
			}
			
			.tul li {
				border: 1px solid #169AF3;
				border-top: none;
			}
			
			.tul li:first-child {
				border: 1px solid #169AF3;
			}
			
			.tul li span {
				padding-left: 5px;
			}
			
			.tul li span:first-child {
				width: 75px;
				border-right: 1px solid #169AF3;
				display: inline-block;
			}
		</style>
	</head>

	<body>
		<div class="main">
			<input type="text" name="" id="" value="" placeholder="search" class="sear"/>
			<input type="button" name="" id="" value="新增" />
			<ul class="ul">
				<li>id</li>
				<li>用户名</li>
				<li>年龄</li>
				<li>

				</li>
				<li>省份</li>
				<li>操作</li>
			</ul>
			<div class="xbox">
				<!--<ul clas
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值