无人解决的问题:prototype & array问题
guag 2007-06-28 06:07:58 <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language=javascript>
function TT()
{
var c = new cls();
c.test();
}
function cls()
{
var _rows = [];
}
cls.prototype =
{
test : function()
{
this._rows.push('aa');
alert(this._rows[0]);
}
}
</script>
</head>
<body>
<input type="button" value="Click" onclick="TT();" />
</body>
</html>