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

<!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>

  

posted @ 2016-10-28 09:48  最骚的就是你  阅读(173)  评论(0编辑  收藏  举报