<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>
解决方案 »
- JS定时器问题求助!!
- 请问JavaScript高手:在网站上如何用JS跨域获取数据?
- javascript Function对象有属性和方法吗?
- 如休实现这样的一个问题
- document.all.WebBrowser.ExecWB(6,1)打印时,在那里设置浏览器的安全性
- 有关WEB打印的问题,希望各位帮忙(在线等待)
- 各位大侠: 帮帮忙吧!
- listbox里所选内容移动__急在线等!!!
- 如何得到一个textbox右上角的相对坐标或是绝对坐标?
- Uncaught TypeError: undefined is not a function
- 能提高 split 的字符串的效率吗? (快来,送分啊)
- 如何和让Cookie关闭浏览器就过期!
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>