代码示例:(标识:jquery_ajax_param)
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  personObj=new Object();
  personObj.firstname="Bill";
  personObj.lastname="Gates";
  personObj.age=60;
  personObj.eyecolor="blue"; 
  $("button").click(function(){
    $("div").text($.param(personObj));
  });
});
</script>
</head>
<body>


<button>序列化对象</button>
<div></div>
</body>
</html>
运行结果: