日期:2014-05-16 浏览次数:20385 次
function getMm(tt)
{
var Temp;
this.index1 = 10;
this.index2 = 11;
var init = function(vtt)
{
alert("POP1: " + this.index1);
Temp = new Array();
Temp[this.index1] = vtt+"012345";
Temp[this.index2] = vtt+"20123456";
}
init(tt);
this.getValue = function (id)
{
return (Temp[id]);
}
}
function onTESTTEST()
{
var Test = new getMm("test");
alert("POP2: " + Test.index1);
alert("POP3: " + Test.getValue(Test.index1));
}
function getMm(tt)
{
var Temp;
var index1 = 10;
var index2 = 11;
var init = function(vtt)
{
alert("POP1: " + index1);
Temp = new Array();
Temp[index1] = vtt+"012345";
Temp[index2] = vtt+"20123456";
}
init(tt);
this.getValue = function (id)
{
return (Temp[id]);
}
}
function onTESTTEST()
{
var Test = new getMm("test");
alert("POP2: " + Test.index1);
alert("POP3: " + Test.getValue(Test.index1));
}
function TEST()
{
a = 0;
var b=0;
this.c = 0;
var init_a = function()
{
}
this.init_b = function()
{
}
};