项目中常常在父页面弹出一个子页面,然后点击子页面向父页面增加数据,用到了sessionStorage,JSON
父页面代码如下
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<link rel="stylesheet" href="themes/metro/easyui.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.easyui.min.js"></script>
</head>
<body>
<a href="#">弹出</a>
<div id="dd">
</div>
</body>
</html>
<script type="text/javascript">
$("a").click(function () {
$('#dd').dialog({
title: 'My Dialog&