案例:jQuery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript" src="/js/jquery.js"></script>
4
<script type="text/javascript">
5
$(document).ready(function(){
6
  personObj=new Object();
7
  personObj.firstname="Bill";
8
  personObj.lastname="Gates";
9
  personObj.age=60;
10
  personObj.eyecolor="blue"; 
11
  $("button").click(function(){
12
    $("div").text($.param(personObj));
13
  });
14
});
15
</script>
16
</head>
17
<body>
18
19
20
<button>序列化对象</button>
21
<div></div>
22
</body>
23
</html>
24