js中函数的参数为对象时候怎么操作????
function  People(hisid,hisname)    
{    
                 this.thisid=hisid;//节点ID    
                 this.name=hisname;//节点名称    
}    
var myPeoples=new  People('0','11111');//放入节点的数组,数组成员是定义的People对象。   
function ss(??)
{
     alert(??.thisid);
     alert(??.name);
}  
<a  onclick  = ss(myPeoples) href="#">1111111</a>    
要实现这样的效果,不知该如何写?请高手指点!!!!!!
------解决方案--------------------<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Untitled Page</title>
   <script type="text/javascript">
   function     People(hisid,hisname)      
   {      
       this.thisid=hisid;//节点ID      
       this.name=hisname;//节点名称      
   }      
   var   myPeoples=new People('0','11111');//放入节点的数组,数组成员是定义的People对象。    
   function   ss(People)  
   {  
       alert(People.thisid);  
       alert(People.name);  
   }  
</script>
</head>
<body>
   <form id="form1" runat="server">
   <div>
       <a onclick="ss(myPeoples)"   href="#"> 1111111 </a>  
   </div>
   </form>
</body>
</html>
------解决方案--------------------直接传进去就可以了。js自己会转换的。
------解决方案--------------------另外js对参数的要求不象C#那样严格,函数会自动匹配参数.
------解决方案--------------------不行的,传过来后是空值???实例化定义的对象没?
People p=new People("1","w222");