如何通过javascript实现两个页面DIV之间的数据传递?
a.html:<!doctypehtml><html><head><metacharset="utf-8"><title>无标题文档</title></head><bod...
a.html:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<div>Hello World</div>
<a href="b.html"><button data-theme="c">下一页</button></a>
</body>
</html>
将a.html中div里的字符传到b.html的div中
b.html:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<div></div>
</body>
</html> 展开
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<div>Hello World</div>
<a href="b.html"><button data-theme="c">下一页</button></a>
</body>
</html>
将a.html中div里的字符传到b.html的div中
b.html:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<div></div>
</body>
</html> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询