<script>
      
    function fy(a){
    
     var div= document.getElementById("div");
     var table=document.createElement("table");
   
     var  xhr=null;
     if(window.ActiveXObject){
      //alert("IE浏览器");
  //创建IE下的XMLHttpRequest对象
    xhr=new ActiveXObject("Microsoft.XMLHTTP");
      }
 else{
    //alert("FireFox");  xhr=new XMLHttpRequest();//在ff中的创建方式
 }  //alert(xhr.readyState);
 //向服务器发送数据
      xhr.open("get","http://localhost:8080/ajaxpage/fenyes?dqy="+a+"&rad="+Math.random(),true);//告诉xhthttpRequest请求方式是什么  请求的地址什么  同步还是异步
  xhr.onreadystatechange=function(){

           
      var   obj=xhr.responseText
     
       var  s=eval("("+obj+")");
       var  stList=s["userList"];
       var dqy=s["dqy"];//我就想在当前页面获得这里的dqy
       alert(dqy);
       var fn=div.firstChild
       if(fn!=null){
           
           div.removeChild(fn);
       }
       for(var i=0;i<stList.length;i++){
            var tr=table.insertRow();//有行 了 
    
            for(var j in  stList[i]){
             var  td=tr.insertCell();
             td.innerHTML=stList[i][j];
            }
           
       }
      
    div.appendChild(table);
  
     
  }   xhr.send();//send()方法是向服务器发送数据---------------------------------------------------------------------------
<body>
   <form action="">
      <input type="text">
   </form>
     <div style="margin:8px"  id="div">
</div>
<a href="javascript:fy(1)" >[首页]</a>    
<a href="javascript:fy(如何在这里接到dqy呢!)">[上一页]</a> 
<a href="">[下一页]</a> 
<a href="">[尾页]</a>  <s:debug></s:debug>
  </body>
  
 
}      
     
      </script>