www.u8686.com-信息发布平台
<html>
<body>
<script>
function user()
{
this.age=21;
this.name="zhangsan";
this.say=function(){
alert("hello");
}
}
var u = new user();
alert(u["age"]);
alert(u.name);
u.say();
</script>
</body>
</html>