<script>
function newArray(dimension)
{
this.base = Array;
var aa = this.base(dimension);
aa.show = show
aa.str = "";
return aa
}
newArray.prototype =new Array();
function show(i)
{
this.str = i + " is OK!"
return this.str;
//WScript.echo(this[i]);
}var test = new newArray(3);test[0] = "asdf";
test[1] = "bde";alert(test.length);
alert(test.show(0));
</script>
function newArray(dimension)
{
this.base = Array;
var aa = this.base(dimension);
aa.show = show
aa.str = "";
return aa
}
newArray.prototype =new Array();
function show(i)
{
this.str = i + " is OK!"
return this.str;
//WScript.echo(this[i]);
}var test = new newArray(3);test[0] = "asdf";
test[1] = "bde";alert(test.length);
alert(test.show(0));
</script>
function newArray(dimension)
{
this.base = Array;
var aa = this.base(dimension);
aa.show = show
aa.str = "";
return aa
}
newArray.prototype =new Array();
function show(i)
{
this.str = i + " is OK!"
return this.str;
//WScript.echo(this[i]);
}var test = new newArray(3);test[0] = "asdf";
test[1] = "bde";alert(test.length);
alert(test.show(0));
</script>