<!DOCTYPE html> <html>  <head>   <meta charset="UTF-8">   <title></title>   <script type="text/javascript">    function libin(a,b){     this.a=a;     this.b=b;     this.init();    }    libin.prototype.init=function(){     console.log(this.a+":"+this.b);     this.wocao();    }    libin.prototype.wocao=function(){     console.log("名字:"+this.a+","+"年龄:"+this.b);    }        var sb=new libin('李斌',25)   </script>  </head>  <body>  </body> </html>


常见组件对象的搞法(*********************************************)_javascript