function s_volumelist()
{
this.length=12;
this[0][0]=new Array(2);
this[0][0][0]=new Option("上册","上册");
this[0][0][1]=new Option("下册","下册");
this[0][1]=new Array(2);
this[0][1][0]=new Option("上册","上册");
this[0][1][1]=new Option("下册","下册");
this[0][2]=new Array(2);
this[0][2][0]=new Option("上册","上册");
this[0][2][1]=new Option("下册","下册");
this[0][3]=new Array(2);
this[0][3][0]=new Option("上册","上册");
this[0][3][1]=new Option("下册","下册");
this[0][4]=new Array(2);
this[0][4][0]=new Option("上册","上册");
this[0][4][1]=new Option("下册","下册");
this[0][5]=new Array(2);
this[0][5][0]=new Option("上册","上册");
this[0][5][1]=new Option("下册","下册");
this[1][0]=new Array(2);
this[1][0][0]=new Option("上册","上册");
this[1][0][1]=new Option("下册","下册");
this[1][1]=new Array(2);
this[1][1][0]=new Option("上册","上册");
this[1][1][1]=new Option("下册","下册");
this[1][2]=new Array(2);
this[1][2][0]=new Option("上册","上册");
this[1][2][1]=new Option("下册","下册");
this[1][3]=new Array(2);
this[1][3][0]=new Option("上册","上册");
this[1][3][1]=new Option("下册","下册");
this[1][4]=new Array(2);
this[1][4][0]=new Option("上册","上册");
this[1][4][1]=new Option("下册","下册");
this[1][5]=new Array(2);
this[1][5][0]=new Option("上册","上册");
this[1][5][1]=new Option("下册","下册");
return this;
}s_volumeOP=new s_volumelist();
然后我调用 s_volumeOP告诉未定义,什么原因呢?求大家指个明路!谢谢!
{
this.length=12;
this[0][0]=new Array(2);
this[0][0][0]=new Option("上册","上册");
this[0][0][1]=new Option("下册","下册");
this[0][1]=new Array(2);
this[0][1][0]=new Option("上册","上册");
this[0][1][1]=new Option("下册","下册");
this[0][2]=new Array(2);
this[0][2][0]=new Option("上册","上册");
this[0][2][1]=new Option("下册","下册");
this[0][3]=new Array(2);
this[0][3][0]=new Option("上册","上册");
this[0][3][1]=new Option("下册","下册");
this[0][4]=new Array(2);
this[0][4][0]=new Option("上册","上册");
this[0][4][1]=new Option("下册","下册");
this[0][5]=new Array(2);
this[0][5][0]=new Option("上册","上册");
this[0][5][1]=new Option("下册","下册");
this[1][0]=new Array(2);
this[1][0][0]=new Option("上册","上册");
this[1][0][1]=new Option("下册","下册");
this[1][1]=new Array(2);
this[1][1][0]=new Option("上册","上册");
this[1][1][1]=new Option("下册","下册");
this[1][2]=new Array(2);
this[1][2][0]=new Option("上册","上册");
this[1][2][1]=new Option("下册","下册");
this[1][3]=new Array(2);
this[1][3][0]=new Option("上册","上册");
this[1][3][1]=new Option("下册","下册");
this[1][4]=new Array(2);
this[1][4][0]=new Option("上册","上册");
this[1][4][1]=new Option("下册","下册");
this[1][5]=new Array(2);
this[1][5][0]=new Option("上册","上册");
this[1][5][1]=new Option("下册","下册");
return this;
}s_volumeOP=new s_volumelist();
然后我调用 s_volumeOP告诉未定义,什么原因呢?求大家指个明路!谢谢!
解决方案 »
- js的一点小问题
- 如何调用匿名函数中的变量或函数?!
- 向前辈请教,我在笔记本上调试正在开发的网站,有些页面会打开得比较慢
- 如何写一个javascript方法调用一个js文件
- 请教关于setInterval嵌套的问题??/
- js文件中怎么调用asp的变量呀?
- 请问Document.formname.XXXX.option[]中xxxx如果为变量,应该如何写这个代码?
- 求助:怎样在鼠标点击一个input控件时弹出一个动态div
- 我的原代码,看能不能实现这个功能?在线~~
- 如何在提交前,判断是否选择了多个复选框的一个,从而提示拥护必须选择一个,才能提交??(类似于提交前,判断输入不能为空的情况)
- <javascript的函数>
- 奇怪的问题,让JS代码失效
{
var arr = [];
arr[0] = [];
arr[0][0]=new Array(2);
arr[0][0][0]=new Option("上册","上册");
arr[0][0][1]=new Option("下册","下册");
arr[0][1]=new Array(2);
arr[0][1][0]=new Option("上册","上册");
arr[0][1][1]=new Option("下册","下册");
arr[0][2]=new Array(2);
arr[0][2][0]=new Option("上册","上册");
arr[0][2][1]=new Option("下册","下册");
arr[0][3]=new Array(2);
arr[0][3][0]=new Option("上册","上册");
arr[0][3][1]=new Option("下册","下册");
arr[0][4]=new Array(2);
arr[0][4][0]=new Option("上册","上册");
arr[0][4][1]=new Option("下册","下册");
arr[0][5]=new Array(2);
arr[0][5][0]=new Option("上册","上册");
arr[0][5][1]=new Option("下册","下册");
arr[1] = [];
arr[1][0]=new Array(2);
arr[1][0][0]=new Option("上册","上册");
arr[1][0][1]=new Option("下册","下册");
arr[1][1]=new Array(2);
arr[1][1][0]=new Option("上册","上册");
arr[1][1][1]=new Option("下册","下册");
arr[1][2]=new Array(2);
arr[1][2][0]=new Option("上册","上册");
arr[1][2][1]=new Option("下册","下册");
arr[1][3]=new Array(2);
arr[1][3][0]=new Option("上册","上册");
arr[1][3][1]=new Option("下册","下册");
arr[1][4]=new Array(2);
arr[1][4][0]=new Option("上册","上册");
arr[1][4][1]=new Option("下册","下册");
arr[1][5]=new Array(2);
arr[1][5][0]=new Option("上册","上册");
arr[1][5][1]=new Option("下册","下册");
return arr;
}
s_volumeOP=s_volumelist();